delete https://api.djust.example.com/admin/operations/
Deletes an Operation if and only if it is not linked to any cart or order.
Feature flag
- Requires OPERATIONS
to be active.
Access control
- OPERATOR clients: can delete any Operation.
- ACCOUNT clients: can delete only Operations where they are the creator (ownerId), have the OPERATIONS_DELETE
right, and are attached to the effective store.
Constraints
- Operation can be deleted in any status (DRAFT
, ACTIVE
, INACTIVE
).
- Deletion is blocked if the Operation is linked to at least one cart or order.
Cascade effect
- If deletion is authorized, associations to products and accounts are also deleted.