# Remove a ticket state

```http
DELETE https://trydimmi.com/api/v1/ticket-states/{state}
```

## Authorization

Send an API token as `Authorization: Bearer <token>`.
The token needs: `settings:write`.

## Path parameters

- `state` (string, required): Id of the ticket state, starting with tkts_, such as tkts_01jx2m8k4t. Find it with GET /ticket-states.

## Query parameters

- `move_to` (string): Required. The id of another live state of the same group that this state's tickets, and the types using it, move to, such as "tkts_01hzy3v8k2m4n6p8q0r2s4t6v8".

## Response 204 (No Content)

## Response default (Error)

- `code` (string, required): Stable code for programs to tell errors apart, such as validation_failed or internal_error.
- `errors` (object): Each rejected field mapped to its messages. Only present when the input was invalid.
- `message` (string, required): What went wrong, in words safe to show a person.

## Example request

```bash
curl --request DELETE \
  --url 'https://trydimmi.com/api/v1/ticket-states/{state}' \
  --header 'Authorization: Bearer <token>'
```

---

Index of all dimmi docs: https://trydimmi.com/llms.txt (full text: https://trydimmi.com/llms-full.txt)
