Last updated 5 months ago
To a SKU list, send a DELETE request to the /api/sku_lists/:id endpoint, where id is the id of the SKU list that you want to delete.
DELETE
/api/sku_lists/:id
id
DELETE https://yourdomain.commercelayer.io/api/sku_lists/:id
The following request tries to delete the SKU list identified by the ID "xYZkjABcde":
On success, the API responds with a 204 No Content status code.
204 No Content
How to delete an existing SKU list via API
curl -g -X DELETE \ 'https://yourdomain.commercelayer.io/api/sku_lists/xYZkjABcde' \ -H 'Accept: application/vnd.api+json' \ -H 'Authorization: Bearer your-access-token'