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