Delete a Brand
Choose the right endpoint
If you are using the Product Content Management services, use the pcm/hierarchies
endpoints instead of the v2/brands
endpoints. For details about the pcm/hierarchies
endpoints, see the topics in the PCM Hierarchies section.
DELETE
Delete by ID
https://api.moltin.com/v2/brands/:id
Path Parameters:
Name | Required | Type | Description |
---|---|---|---|
id | Required | string | The ID for the Brand to delete. |
Headers:
Name | Required | Type | Description |
---|---|---|---|
Authorization | Required | string | The Bearer token required to get access to the API. |
204 No Content
curl -X DELETE https://api.moltin.com/v2/brands/:id \
-H "Authorization: Bearer XXXX"
const MoltinGateway = require('@moltin/sdk').gateway
const Moltin = MoltinGateway({
client_id: 'X',
client_secret: 'X'
})
const id = 'XXXX'
Moltin.Brands.Delete(id).then(response => {
// Do something
})
const { MoltinClient } = require('@moltin/request')
const client = new MoltinClient({
client_id: 'X',
client_secret: 'X'
})
const id = 'XXXX'
client
.delete(`brands/${id}`)
.then(brand => {
// Do something...
})
.catch(console.error)