Search…
API Reference
Deleting resources
How to delete a resource via API
You can delete a resource by sending a DELETE request to the resource endpoint.

Example

Request
Response
The following request deletes the resource identified by the ID "xYZkjABcde":
1
curl -g -X DELETE \
2
'https://yourdomain.commercelayer.io/api/skus/xYZkjABcde' \
3
-H 'Accept: application/vnd.api+json' \
4
-H 'Authorization: Bearer your-access-token'
Copied!
On success, the API responds with a 204 No Content status code.
Last modified 1mo ago
Copy link
Contents
Example