API Playground

Test the delete family endpoint

Authentication Required

You need to Login to test the API playground

Delete Product Family

Permanently delete a product family

This endpoint allows you to permanently delete a product family by providing its ID.

Important: This action is irreversible. All family data will be permanently removed.
Endpoint URL
DELETE https://api.commerceclarity.com/api/v1/families/delete/{id}

Path Parameters

Parameter Type Required Description
id string Required The unique family identifier (Family ID or family_id)

Request Examples

Basic Request
curl -X DELETE "https://api.commerceclarity.com/api/v1/families/delete/507f1f77bcf86cd799439011" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
PHP Example (Guzzle HTTP Client)
$client = new \GuzzleHttp\Client();

$familyId = '507f1f77bcf86cd799439011';

$response = $client->delete('https://api.commerceclarity.com/api/v1/families/delete/' . $familyId, [
    'headers' => [
        'Authorization' => 'Bearer ' . $apiToken,
    ]
]);

$data = json_decode($response->getBody(), true);
JavaScript Example (Fetch API)
const familyId = '507f1f77bcf86cd799439011';

const response = await fetch(`https://api.commerceclarity.com/api/v1/families/delete/${familyId}`, {
  method: 'DELETE',
  headers: {
    'Authorization': `Bearer ${apiToken}`
  }
});

const data = await response.json();

Response Example

Success Response
{
  "status": "success",
  "message": "Family deleted successfully"
}
Error Response - Validation
{
  "status": "error",
  "message": "Family not found",
  "code": 404
}