Delete a family by id. This playground calls the live API and will permanently remove data.
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.
DELETE https://api.commerceclarity.com/api/2026-05/families/delete/{id}| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Required | The family's family_id or Mongo _id. |
force | boolean | Optional | Query param. When true, delete even if the family is in use. |
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"
{
"status": "success",
"message": "Family deleted successfully"
}{
"status": "error",
"message": "Family is in use. Pass force=true to delete anyway."
}