---
title: "Revoke one of your CLI sessions (session only)"
method: DELETE
path: "/v1/me/cli-sessions/{id}"
tags: ["Account"]
---

# Revoke one of your CLI sessions (session only)

`DELETE /v1/me/cli-sessions/{id}`

## Request

- Base URL: `https://api.openrelay.inc`
- URL: `https://api.openrelay.inc/v1/me/cli-sessions/{id}`
- Auth: HTTP bearer

Revokes one of your CLI sessions; it stops working on the next request to the API or the inference gateway. orl auth logout calls this.
Both the control plane and the inference gateway check revocation on every request, with no cache to wait out. Revoking an already revoked session answers 204 again; orl auth logout then deletes the credential locally.

Requires the `self.update` permission. See [Permissions](https://docs.openrelay.inc/docs/permissions) for the roles and API key permissions that include it.

## Path parameters

- `id` string, required

## Response `204`

Revoked

## Other responses

- `401`: Missing or invalid API key
- `404`: Resource not found

## Changes

- **2026-10-26** `7fe59d94a9f5`: 2 info
  - added the optional property `requestId` to the response with the `401` status
  - added the optional property `requestId` to the response with the `404` status
- **2026-10-21** `dc9750cb25b5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openrelay/apis/openrelay-api/changes/v1/me/cli-sessions/:id/delete.md)

---

[API](https://skmtc.dev/openrelay/apis/openrelay-api.md) - [All operations](https://skmtc.dev/openrelay/apis/openrelay-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openrelay/apis/openrelay-api/revisions/7fe59d94a9f5?raw)
