Delete product
Remove a product from your catalogue.
POST
/ bigblue.storeapi.v1.PublicAPI/ DeleteProductDeletes a product and returns an empty object.
Only delete products created by mistake. A product with stock, an open inbound shipment or orders can't be deleted. Stop selling it instead.
If the product is part of a bundle, remove it from the bundle first.
Request body
idstringrequiredBigblue product ID.
Pattern
^[A-Za-z0-9]{4}-[A-Za-z0-9]{6}-[A-Za-z0-9]{4}$Responses
{}{
"code": "invalid_argument",
"msg": "id value does not match regex pattern `^[[:alnum:]]{4}-[[:alnum:]]{6}-[[:alnum:]]{4}$`",
"meta": { "argument": "id" }
}{ "code": "not_found", "msg": "product not found" }{ "code": "failed_precondition", "msg": "product still has inventory" }POST
/ bigblue.storeapi.v1.PublicAPI/ DeleteProduct{ "id": "BGBL-ESPSRT-SMAL" }{}