Delete Category

Delete a category. Knowledge items in the category are not deleted.

Endpoint

DELETE /v1/workspaces/{workspaceId}/category/{categoryId}

Request

curl -X DELETE \
  'https://api.sharely.ai/v1/workspaces/{workspaceId}/category/{categoryId}' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'organizationid: your-organization-id'

Response

{
  "success": true,
  "message": "Category deleted successfully"
}

Important Notes

  • Deleting a category does not delete the knowledge items within it
  • Child categories are also deleted (if hierarchical structure used)
  • This operation cannot be undone

Related Endpoints