# Sign a CLI out.

> Its owner (a session or a full grant) or the grant itself.
> https://koi.dog/docs/api/cli-sign-in/revoke-cli-grant/

`DELETE /api/v1/auth/cli-grants/{id}` · Key: `any`

The timeline records the key ID, action and outcome.

## Path parameters.

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | yes | The CLI sign-in's id. |

## Headers.

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `Idempotency-Key` | `string` | no | Retry the same request with the same key. [Retry rules](https://koi.dog/docs/api/#retries). |

## Response.

204 No Content

## Request.

```sh
curl -X DELETE "https://api.koi.dog/api/v1/auth/cli-grants/$ID" \
    -H "Authorization: Bearer $KOIDOG_API_KEY"
```

```js
const res = await fetch(`https://api.koi.dog/api/v1/auth/cli-grants/${process.env.ID}`, {
  method: "DELETE",
  headers: {
    Authorization: `Bearer ${process.env.KOIDOG_API_KEY}`,
  },
});
console.log(res.status);
```

```python
import os

import requests

r = requests.delete(
    f"https://api.koi.dog/api/v1/auth/cli-grants/{os.environ['ID']}",
    headers={
        "Authorization": f"Bearer {os.environ['KOIDOG_API_KEY']}",
    },
)
r.raise_for_status()
print(r.status_code)
```
