Delete Brand
Permanently deletes a brand. The brand is also removed from every product it was assigned to.
HTTP Request
- URL:
/brands/{id} - Method:
DELETE - Headers:
accessToken: Required. Your API access token.
- Required scope: None. Any valid access token can call this endpoint.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id | String | Required. The ID of the brand to delete. |
cURL Example
curl --location --request DELETE '<BASE_URL>/brands/663a0f1e4587085935a4fa21' \
--header 'accessToken: <ACCESS_TOKEN>'
Response
- 200 OK: The request was processed. Check
successto confirm the brand was deleted. - 400 Bad Request: The access token is missing or invalid, or the brand ID is not valid.
Sample JSON Response
{
"success": true,
"message": "Brand Acme Tools deleted successfully"
}
Response Details
| Field | Type | Description |
|---|---|---|
success | Boolean | true when the brand was deleted. |
message | String | Confirmation message that includes the brand name. |
Notes
- Deleting a brand cannot be undone. To hide a brand instead, set
isShowtofalsewith Update Brand. - If no brand matches the ID, the response has
success: falseand the messageBrand not exists!.