Product Images — Delete
Removes a single product image — both the DB row and the file on storage.
Endpoint
| Endpoint | Method |
|---|---|
/api/admin/catalog/products/{productId}/images/{id} | DELETE |
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
productId | integer | yes | Parent product ID. |
id | integer | yes | Image ID — must belong to {productId}. |
Response
200 OK
| Field | Type | Notes |
|---|---|---|
success | bool | |
message | string |
Errors
| HTTP | Cause |
|---|---|
401 Unauthorized | Missing or invalid admin Bearer token. |
403 Forbidden | Admin role lacks catalog.products.edit. |
404 Not Found | Image or its parent product not found. |

