Delete a product
DELETE
/products/{id}
Soft-deletes the product.
422 UNPROCESSABLE: it is a gift card product.409 CONFLICT: it is used as a composite component.409 CONFLICT: it has active variant children.404 NOT_FOUND: the id is foreign, unknown, or already deleted.
Requires scope: catalog:write
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Delete a product
Media typeapplication/json
No content.
object
Examplegenerated
{}default
Section titled “default”An error response.
Media typeapplication/json
object
error
required
object
code
required
A machine-readable error code, e.g. VALIDATION_FAILED.
string
fields
Array<object>
object
field
required
string
message
required
string
message
required
A plain-English sentence describing what went wrong.
string
Example
{ "error": { "code": "UNAUTHORIZED" }}