Delete a Brand

Last updated last month

delete
Delete by ID

https://api.moltin.com
/v2/brands/:id
Request
Response
Path Parameters
id
required
string
The ID for the Brand to delete
Headers
Authorization
required
string
The Bearer token to grant access to the API
204: No Content
cURL
JavaScript SDK
Moltin Request
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 { createClient } = require('@moltin/request')
const client = new createClient({
client_id: 'X',
client_secret: 'X'
})
const id = 'XXXX'
client
.delete(`brands/${id}`)
.then(brand => {
// Do something...
})
.catch(console.error)