Remove the main image
/deals/{dealId}/imageClears the deal's main (hero) image and returns 204; clearing an empty one also returns 204. A published deal returns 409 invalid_state; unpublish it first. dry_run shows the result without saving it. Emits deal.updated with image_id in changed_fields and sends no email. The file stays in the assets folder, so PATCH /deals/{id} with image_id undoes it.
Deprecated: it will be withdrawn on 2027-06-30. PATCH /deals/{id} with image_id: null replaces it; the Link header names the replacement.
Path parameters
The deal's public uuid.
Query parameters
Validate and run the call without committing it, returning what the real call would return with
meta.dry_runset.
Responses
Removed (no content).
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.
Request validation failed (HTTP 422). The body is either the Laravel
validation envelope (message + field-keyed errors) or the API error
envelope for domain rejections (e.g. form_type_not_supported,
folder_locked, parent_not_found, folder_not_empty).
Examples
curl -X DELETE https://your-org-domain/kong/core/api/v2/deals/{dealId}/image\
-H "Authorization: Bearer $HELM_API_KEY"\
-H "Content-Type: application/json"