---
title: "Delete session cookie (logout)"
method: DELETE
path: "/api/auth/session"
tags: ["auth"]
---

# Delete session cookie (logout)

`DELETE /api/auth/session`

[cloud-only] Clears the session cookie and optionally revokes the session on the server.

## Response `200`

Session deleted

- DeleteSessionResponse — [cloud-only] Response after deleting a session cookie.
  - `success` boolean, required

## Other responses

- `500` — Internal server error

## Changes

- **2026-05-22** `09a5075587c8` — 2 info
  - api operation id `deleteAuthSession` removed and replaced with `deleteSession`
  - added the non-success response with the status `500`
- **2026-05-08** `c9640fded659` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/comfy-org/apis/comfyui-api/changes/api/auth/session/delete.md)

---

[API](https://skmtc.dev/comfy-org/apis/comfyui-api.md) · [All operations](https://skmtc.dev/comfy-org/apis/comfyui-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/comfy-org/comfyui-api/revisions/09a5075587c8/schema)
