# Withdraw a document category from an entity type

`DELETE /lokta-lms/api/v1/documentcategories/{id}`

Removes the mapping and the tags under it.

Documents already filed under this category keep reading as they did: l_document stores the label, not a key,
so history survives a taxonomy change. To stop offering a category without removing it, set active=false
instead.

## Parameters
- `id` (path, integer, required)

## Responses
- `200`: OK

## Response fields
- `resourceId` (integer)

## Example request (cURL)
```bash
curl -X DELETE \
  'https://default.lokta.tech/lokta-lms/api/v1/documentcategories/{id}' \
  -u '{username}:{password}' \
  -H 'Tenant-Identifier: default'
```

## Example response
```json
{
  "resourceId": 1
}
```

Interactive: https://developer.lokta.ai/reference#operation/delete
