***

title: delete
slug: /reference/python/rest/compat/tokens/delete
description: Delete an API token.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

Delete an API token.

<EndpointSchemaSnippet endpoint="DELETE /Accounts/{AccountSid}/tokens/{token_id}" />

## **Example**

```python {9}
from signalwire.rest import RestClient

client = RestClient(
    project="your-project-id",
    token="your-api-token",
    host="your-space.signalwire.com",
)

client.compat.tokens.delete("token-id")
```