Delete a component
Refused while any kit lists the part (409 component_in_use, with
details.kits): deleting it would silently drop a line from every such
bill of materials. Also refused (409 component_not_removable) when the
part is itself a kit, was sold, or holds reserved stock. Deletes its
stock rows and history, and the wrapper product when it is an empty,
unsold draft.
Authorization
bearer_auth Authorization: Bearer <token>. Either a session access token from POST /auth/login (refresh it with POST /auth/refresh) or a store API token (mobi_st_…). A store API token works only for the store it was issued in, and can do at most what its issuing user can there, narrowed to the scopes it was issued with.
In: header
Path Parameters
Store id
uuidThe component's variant id
uuidResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/stores/497f6eca-6276-4993-bfeb-53cbbbba6f08/components/497f6eca-6276-4993-bfeb-53cbbbba6f08"{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}