curl --request DELETE \
--url https://api.example.com/api/categories/:categoryId \
--header 'Authorization: <authorization>'{
"message": "Category deleted successfully"
}
Delete a category
curl --request DELETE \
--url https://api.example.com/api/categories/:categoryId \
--header 'Authorization: <authorization>'{
"message": "Category deleted successfully"
}
Permanently deletes a category from the system. This endpoint requires admin authentication.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/PhemiT/vaniykeempire-api/llms.txt
Use this file to discover all available pages before exploring further.
Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...{
"message": "Category deleted successfully"
}
{
"error": "Category not found"
}
{
"error": "No token provided"
}
{
"error": "Admin access required"
}
{
"error": "Database connection failed"
}
curl -X DELETE https://api.vaniyk-empire.com/api/categories/507f1f77bcf86cd799439011 \
-H "Authorization: Bearer YOUR_ADMIN_TOKEN"
categoryId parameter must be a valid MongoDB ObjectId