API Playground

Delete an attribute by id. This playground calls the live API and will permanently remove data.

Authentication Required

You need to Login to test the API playground

Delete attribute

Permanently delete an attribute definition by id.

Endpoint URL
DELETE https://api.commerceclarity.com/api/2026-05/attributes/delete/{id}

Path Parameters

ParameterTypeRequiredDescription
idstringRequiredThe attribute's attribute_id or Mongo _id.

Request Examples

curl -X DELETE "https://api.commerceclarity.com/api/2026-05/attributes/delete/color" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"

Response Example

Success Response
{
  "success": true,
  "message": "Attribute deleted successfully"
}
Error Response - Validation
{
  "success": false,
  "message": "Attribute not found"
}