---
title: "Perform Logout for Native Apps"
method: DELETE
path: "/self-service/logout/api"
tags: ["frontend"]
---

# Perform Logout for Native Apps

`DELETE /self-service/logout/api`

Use this endpoint to log out an identity using an Ory Session Token. If the Ory Session Token was successfully
revoked, the server returns a 204 No Content response. A 204 No Content response is also sent when
the Ory Session Token has been revoked already before.

If the Ory Session Token is malformed or does not exist a 403 Forbidden response will be returned.

This endpoint does not remove any HTTP
Cookies - use the Browser-Based Self-Service Logout Flow instead.

## Request body

- PerformNativeLogoutBody — Perform Native Logout Request Body
  - `session_token` string, required — The Session Token Invalidate this session token.

## Response `204`

Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 204.

## Other responses

- `400` — errorGeneric
- `default` — errorGeneric

## Changes

> 47 revisions in range; 1 could not be searched.

- **2022-12-02** `b6e5ffa30d4c` — 4 info
  - api operation id `submitSelfServiceLogoutFlowWithoutBrowser` removed and replaced with `performNativeLogout`
  - api tag `frontend` added
  - api tag `v0alpha2` removed
  - removed the non-success response with the status `500`
- **2021-10-28** `c55ed8ad9f0c` — 4 info
  - api tag `v0alpha2` added
  - api tag `v0alpha1` removed
  - added the optional property `error/id` to the response with the `400` status
  - added the optional property `error/id` to the response with the `500` status
- **2021-07-13** `8f1b399ab6e6` — 1 info
  - endpoint added
- **2021-05-05** `381c760af46e` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/ory/apis/ory-identities-api/changes/self-service/logout/api/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/7a0df90e2f13/schema)
