---
title: "Calling this endpoint invalidates all except the current session that belong to the logged-in user.
Session data are not deleted."
method: DELETE
path: "/sessions"
tags: ["v0alpha2"]
---

# Calling this endpoint invalidates all except the current session that belong to the logged-in user.
Session data are not deleted.

`DELETE /sessions`

This endpoint is useful for:

To forcefully logout the current user from all other devices and sessions

## Headers

- `X-Session-Token` string
- `Cookie` string

## Response `200`

revokedSessions

- RevokedSessions
  - `count` integer — The number of sessions that were revoked.

## Other responses

- `400` — jsonError
- `401` — jsonError
- `404` — jsonError
- `500` — jsonError

## Changes

- **2022-03-22** `028a4cf83c15` — 1 info
  - endpoint added
- **2021-07-13** `8f1b399ab6e6` — 1 breaking
  - api path removed without deprecation
- **2021-05-18** `9123bcead5ed` — 4 info
  - the response property `error` became required for the status `400`
  - the response property `error` became required for the status `500`
  - the response property `error/message` became required for the status `400`
  - the response property `error/message` became required for the status `500`
- **2021-05-05** `381c760af46e` — 4 breaking, 3 warning, 6 info
  - added required request body
  - the response property `error` became optional for the status `400`
  - the response property `error/message` became optional for the status `400`
  - removed the success response with the status `200`
  - …9 more

[Change history](https://skmtc.dev/ory/apis/ory-identities-api/changes/sessions/delete.md)

---

[API](https://skmtc.dev/ory/apis/ory-identities-api.md) · [All operations](https://skmtc.dev/ory/apis/ory-identities-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ory/ory-identities-api/revisions/028a4cf83c15/schema)
