Delete a link

How to delete an existing link via API

To delete a link, send a DELETE request to the /api/links/:id endpoint, where id is the id of the link that you want to delete.

Request

DELETE https://yourdomain.commercelayer.io/api/links/:id

Example

The following request tries to delete the link identified by the ID "xYZkjABcde":

curl -g -X DELETE \
  'https://yourdomain.commercelayer.io/api/links/xYZkjABcde' \
  -H 'Accept: application/vnd.api+json' \
  -H 'Authorization: Bearer your-access-token'

Last updated