# delete\_document\_type

Delete a document type.

writes · idempotent · destructive · CLI only · [Agent](https://komrad.dev/latest/api/agent.md)

Komrad refuses while documents of the type exist.

## Calling it

```bash
curl -X POST http://127.0.0.1:8787/komrad.agent.v1.AgentService/DeleteDocumentType \
  -H 'Content-Type: application/json' \
  -d '{
  "id": "<id>"
}'
```

```bash
komrad rpc delete-document-type \
  --id '<uuid>'
```

## Request

### DeleteDocumentTypeRequest

| Field | Type | Description |
| --- | --- | --- |
| [`id`](https://komrad.dev/latest/api/agent/delete-document-type.md#komrad-agent-v1-DeleteDocumentTypeRequest-id) | uuid\* | The document type to delete, by id. |

## Response

### Empty

No fields.
