Next: log
Prev: data
destroy(dbref)This function destroys the object given by the dbref dbref. If any methods are currently executing on that object, or any methods are executing which are defined by that object, then it will not be destroyed immediately. If no object exists with the dbref dbref, then
destroy() throws a ~objnf error.Objects left orphaned by the destruction of their only parent are reparented to the parents of the parent which was destroyed.
destroy() throws a ~perm error if you attempt to destroy
the root object or system object, which is not allowed. Otherwise,
destroy() returns 1.