Skip to content

Catalog Product — Delete

Deletes a catalog product. Fires catalog.product.delete.before / catalog.product.delete.after.

No "in-order" delete guard (parity with monolith)

Bagisto admin does not refuse to delete a product that appears in non-completed orders. This endpoint matches that behaviour — order items preserve their snapshot data after the product row is gone. If you need referential integrity, add the guard at the application layer.

Endpoint

EndpointMethod
/api/admin/catalog/products/{id}DELETE

Path parameters

FieldTypeRequiredNotes
idintegeryesProduct ID.

Response

204 No Content on success.

Errors

HTTPCause
401 UnauthorizedMissing or invalid admin Bearer token.
403 ForbiddenAdmin role lacks catalog.products.delete.
404 Not FoundProduct not found.

Notes

  • For configurable products, all variants cascade automatically.

Released under the MIT License.