# Delete an unused transaction category

Delete a category that no bank line is filed under (its `uses` is 0). A category in use is refused with 409 — archive it instead by saving it with active=false, which keeps those lines' history readable. Takes the brokerage's books: an owner or admin, or a seat holding an accounting grant (`get_accounting_me_access`); anyone else is refused with 403.

Access class: `workspace:books`.

## Endpoint

`DELETE /v1/accounting/categories/{identifier}`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| identifier | path | string | Yes |

## Responses

### 200

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "deleted": "string"
  }
}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
