MCPcopy
hub / github.com/jumpserver/jumpserver / delete

Method delete

apps/assets/models/node.py:620–624  ·  view source on GitHub ↗
(self, using=None, keep_parents=False)

Source from the content-addressed store, hash-verified

618 return self.get_all_assets().exists()
619
620 def delete(self, using=None, keep_parents=False):
621 if self.has_offspring_assets():
622 return
623 self.all_children.delete()
624 return super().delete(using=using, keep_parents=keep_parents)
625
626 def update_child_full_value(self):
627 nodes = self.get_all_children(with_self=True)

Callers 15

clean_db_content_typesFunction · 0.45
clean_groupFunction · 0.45
clean_hostFunction · 0.45
removeFunction · 0.45
remove_old_nodesMethod · 0.45
perform_destroyMethod · 0.45
putMethod · 0.45

Calls 1

has_offspring_assetsMethod · 0.95

Tested by

no test coverage detected