diff --git a/ayon_api/entity_hub.py b/ayon_api/entity_hub.py index 4cab8f282..356caea63 100644 --- a/ayon_api/entity_hub.py +++ b/ayon_api/entity_hub.py @@ -825,6 +825,8 @@ def delete_entity(self, entity): parent = self._entities_by_id.get(parent_id) if parent is not None: parent.remove_child(entity.id) + else: + self.unset_entity_parent(entity.id, parent_id) def reset_immutable_for_hierarchy_cache( self, entity_id: Optional[str], bottom_to_top: Optional[bool] = True