API Playground

Delete a family 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 family

Permanently delete a family by id.

By default a family that is still referenced by attributes or entities cannot be deleted. Pass ?force=true to force the deletion.

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

Path Parameters

ParameterTypeRequiredDescription
idstringRequiredThe family's family_id or Mongo _id.
forcebooleanOptionalQuery param. When true, delete even if the family is in use.

Request Examples

curl -X DELETE "https://api.commerceclarity.com/api/2026-05/families/delete/electronics?force=true" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"

Response Example

Success Response
{
  "status": "success",
  "message": "Family deleted successfully"
}
Error Response - Validation
{
  "status": "error",
  "message": "Family is in use. Pass force=true to delete anyway."
}