Test the delete family endpoint
Permanently delete a product family
This endpoint allows you to permanently delete a product family by providing its ID.
DELETE https://api.commerceclarity.com/api/v1/families/delete/{id}
| Parameter | Type | Required | Description |
|---|---|---|---|
id |
string | Required | The unique family identifier (Family ID or family_id) |
curl -X DELETE "https://api.commerceclarity.com/api/v1/families/delete/507f1f77bcf86cd799439011" \
-H "Authorization: Bearer YOUR_API_TOKEN"
$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);
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();
{
"status": "success",
"message": "Family deleted successfully"
}
{
"status": "error",
"message": "Family not found",
"code": 404
}