web/contentment/taxonomy.py
def empty(self, *q_objs, **query):
		"""Delete all descendants of the currently selected assets.

		Warning: If run on all assets this will only leave the root element intact. It would also be expensive.
		"""

		# import ipdb; ipdb.set_trace()

		parents = self.clone().filter(*q_objs, **query)

		# Optimization note: this doesn't need to worry about normalizing paths, thus the _from_doc_delete.
		# TODO: Handle potential exception: signal handlers may preemptively delete included records. That's perfectly ok!
		self.base_query(parents__in=parents).delete(write_concern=None, _from_doc_delete=True)  # TODO: write_concern

		# Returns original QuerySet, as it'll need to re-query to check if any included results survive.
		return self
Delete all descendants of the currently selected assets.

		Warning: If run on all assets this will only leave the root element intact. It would also be expensive.
		
Delete all descendants of the currently selected assets.
Warning: If run on all assets this will only leave the root element intact. It would also be expensive.
Delete all descendants of the currently selected assets . Warning : If run on all assets this will only leave the root element intact . It would also be expensive .
def empty(self, *q_objs, **query):
		parents = self.clone().filter(*q_objs, **query)
		self.base_query(parents__in=parents).delete(write_concern=None, _from_doc_delete=True)  
		return self
def empty ( self , * q_objs , ** query ) : parents = self . clone ( ) . filter ( * q_objs , ** query ) self . base_query ( parents__in = parents ) . delete ( write_concern = None , _from_doc_delete = True ) return self
Delete all descendants of the currently selected assets.
Delete all descendants of the currently selected assets .
"""Delete all descendants of the currently selected assets.

		Warning: If run on all assets this will only leave the root element intact. It would also be expensive.
		""" # import ipdb; ipdb.set_trace() # Optimization note: this doesn't need to worry about normalizing paths, thus the _from_doc_delete. # TODO: Handle potential exception: signal handlers may preemptively delete included records. That's perfectly ok! # TODO: write_concern # Returns original QuerySet, as it'll need to re-query to check if any included results survive.
self