Deleting object implementation