Skip to main content
DELETE
/
api
/
v1
/
collections
/
{id}
.json
Delete Collection
curl --request DELETE \
  --url https://api.launchmystore.io/api/v1/collections/{id}.json \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "id": "<string>",
    "deleted": true
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.launchmystore.io/llms.txt

Use this file to discover all available pages before exploring further.

Delete Collection

Permanently deletes a collection. This action cannot be undone. Products in the collection are not deleted, only their association with the collection is removed.

Request

curl -X DELETE "https://api.launchmystore.io/api/v1/collections/col_abc123.json" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Path Parameters

id
string
required
The unique collection ID to delete

Response

success
boolean
Whether the request succeeded
data
object
Confirmation object

Example Response

{
  "success": true,
  "data": {
    "id": "col_abc123",
    "deleted": true
  }
}

Notes

  • Deleting a collection does not delete the products in it
  • Products are simply disassociated from the collection
  • Collection images stored in your CDN are also deleted
  • Navigation menu links pointing to this collection will become broken

Error Codes

CodeDescription
UNAUTHORIZEDInvalid or missing access token
FORBIDDENApp doesn’t have write_products scope
NOT_FOUNDCollection with the specified ID does not exist