Skip to main content
DELETE
/
api
/
v2
/
admin
/
products
/
{id}
Delete product
curl --request DELETE \
  --url https://faisalshop.mvp-apps.ae/api/v2/admin/products/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'X-Tenant-ID: <x-tenant-id>'

Overview

Delete a product from your catalog. This is a permanent action and cannot be undone.

Authorization

  • User must be authenticated with a valid Bearer token
  • User must be a member of the tenant
  • Requires X-Tenant-ID header

Important Notes

  • Deletion is permanent
  • Consider soft deletes or archiving for better data retention
  • Check for existing orders before deleting products

Example Usage

curl -X DELETE \
  https://faisalshop.mvp-apps.ae/api/v2/admin/products/42 \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'X-Tenant-ID: 123'
await axios.delete(
  `/api/v2/admin/products/${productId}`,
  {
    headers: {
      Authorization: `Bearer ${token}`,
      'X-Tenant-ID': tenantId
    }
  }
);

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Tenant-ID
string
required

Tenant ID for multi-tenancy

Path Parameters

id
integer
required

Response

200

Product deleted