Delete a deal
/deals/{id}Deletes a draft deal and returns 204. It takes no body and no confirm flag. A deal in any other status returns 409 invalid_state with current_state and allowed_states of draft; archive a published deal with POST /deals/{id}/actions/archive instead. It can't be undone and has no dry run. Emits deal.deleted and sends no email.
Path parameters
The deal's id, a uuid. An unknown id, or a deal the token can't see, returns 404.
Responses
The deal was deleted.
Authorization failed. error.code is one of org_disabled,
ip_blocked, missing_scope, scope_disabled, user_disabled.
The request conflicts with existing state (error.code = conflict),
e.g. a compliance flow with the requested name already exists.
The request can't be processed (HTTP 422): validation_failed with one ErrorDetail per
problem, or a code documented on the operation.
Examples
curl -X DELETE https://your-org-domain/kong/core/api/v2/deals/{id}\
-H "Authorization: Bearer $HELM_API_KEY"\
-H "Content-Type: application/json"