Skip to content

Commit fb30c7f

Browse files
[client] fix handling of external reference delete for delete operation (opencti #11958)
1 parent 3ef3f20 commit fb30c7f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pycti/utils/opencti_stix2.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2651,6 +2651,8 @@ def element_operation_delete(self, item, operation):
26512651
force_delete = operation == "delete_force"
26522652
if item["type"] == "relationship":
26532653
self.opencti.stix_core_relationship.delete(id=item["id"])
2654+
elif item["type"] == "external-reference":
2655+
self.opencti.external_reference.delete(item["id"])
26542656
elif item["type"] == "sighting":
26552657
self.opencti.stix_sighting_relationship.delete(id=item["id"])
26562658
elif item["type"] in STIX_META_OBJECTS:

0 commit comments

Comments
 (0)