delete - Delete an object or reference


delete reference
delete object_dereference


In the first form, the delete command will remove reference.
In the second form, the delete command will remove the object referenced by object_dereference and all references to it.
Method 1:
object ::myclass myobj
reference myref [myobj]
delete myref
Would only delete the myref reference.  (myobj, a reference as well, as discussed in the object docs, would not)
Method 2:
reference myref [new ::myclass]
delete [myref]
Would delete the object that was created by the new command then delete all references to it, myref included.