We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bab7d92 commit e0b4a62Copy full SHA for e0b4a62
pycti/utils/opencti_stix2.py
@@ -2519,8 +2519,8 @@ def organization_unshare(self, item):
2519
def element_operation_delete(self, item, operation):
2520
# If data is stix, just use the generic stix function for deletion
2521
if item["type"] in STIX_OBJECTS:
2522
- item["force_delete"] = operation == "delete-force"
2523
- self.opencti.stix.delete(id=item["id"])
+ force_delete = operation == "delete-force"
+ self.opencti.stix.delete(id=item["id"], force_delete=force_delete)
2524
else:
2525
# Element is not knowledge we need to use the right api
2526
stix_helper = self.get_internal_helper().get(item["type"])
0 commit comments