Delete Category
Delete A Category
DELETE {{URL}}/api/v1/category/delete/:categoryId
This endpoint allows an admin user to delete a category.
Path Parameters
Name
Type
Description
category_id
string
The ID of the category to be deleted.
Headers
Name
Type
Description
Authentication
string
Authentication token of the admin user.
{
"status": "success",
"message": "Category deleted successfully",
"results": 1,
"data": {
"_id": "607be82e18d64a0022f3045e",
"name": "Movies",
"description": "Testing category",
"createdAt": "2021-04-18T08:05:02.000Z",
"__v": 0
}
}Last updated
Was this helpful?