Skip to main content
DELETE
/
api
/
v1
/
products
/
:id
Delete Product
curl --request DELETE \
  --url https://api.launchmystore.io/api/v1/products/:id \
  --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 Product

Permanently deletes a product and all its variants. This action cannot be undone.

Request

curl -X DELETE "https://api.launchmystore.io/api/v1/products/prod_abc123" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Path Parameters

id
string
required
The unique product ID to delete

Response

success
boolean
Whether the request succeeded
data
object
Confirmation object

Example Response

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

Notes

  • Deleting a product also deletes all associated variants, images, and inventory records
  • Products that are part of active orders will have their order line items preserved for historical records
  • Consider using status: "archived" instead of deletion if you need to preserve product history

Error Codes

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