delete https://example.com/v1/operations/
Deletes an Operation if and only if it is not linked to any cart or order.
Feature flag
- Requires
OPERATIONSto 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_DELETEright, 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.
