---
title: "deleteToken"
---

> Documentation Index
> Fetch the complete documentation index at: https://agenthold.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# deleteToken

Path: agenthold API › tokens

`DELETE /me/tokens/{tokenId}`

URL: `/api/v1/me/tokens/{tokenId}`

## Authentication

Requires one of the following:

- `session`, apiKey, in cookie
- `token`, http bearer, header `Authorization`

## Path parameters

- `tokenId` (`deleteToken.path.tokenId`; string, required)

## Code samples

### cURL

```bash
curl --request DELETE \
  --url '<base-url>/api/v1/me/tokens/<tokenId>' \
  --cookie 'agenthold_session=<agenthold_session>'
```

### TypeScript

```typescript
const url = '<base-url>/api/v1/me/tokens/<tokenId>';
const options = {
  method: 'DELETE',
  headers: {cookie: 'agenthold_session=<agenthold_session>'}
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "<base-url>/api/v1/me/tokens/<tokenId>"

headers = {"cookie": "agenthold_session=<agenthold_session>"}

response = requests.delete(url, headers=headers)

print(response.text)
```

## Responses

### 204

Revoked.

### 404

Error.

#### Example

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

- `error` (`deleteToken.response.404.error`; string, required)


Source: https://agenthold.dev/api/delete-token/index.md
