---
title: "Logout / Delete session"
method: DELETE
path: "/sessions/{sid}"
tags: ["Authentication"]
---

# Logout / Delete session

`DELETE /sessions/{sid}`

Terminates the specified session. Use "self" to logout current session.

## Path parameters

- `sid` string, required

## Response `200`

Session terminated successfully

- object

## Other responses

- `401` — Access denied

## Changes

- **2026-01-30** `32f48ec94aec` — 3 info
  - api operation id `logout` removed and replaced with `deleteSession`
  - added the optional property `description` to the response with the `401` status
  - added the optional property `error` to the response with the `401` status
- **2023-02-28** `910d3ad08e09` — 2 info
  - api operation id `logout` was added
  - added the non-success response with the status `401`
- **2023-02-23** `9c09a2aad349` — 2 info
  - api operation id `deleteSession` removed and replaced with ``
  - removed the non-success response with the status `401`

[Change history](https://skmtc.dev/netxms/apis/netxms-rest-api/changes/sessions/:sid/delete.md)

---

[API](https://skmtc.dev/netxms/apis/netxms-rest-api.md) · [All operations](https://skmtc.dev/netxms/apis/netxms-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/netxms/netxms-rest-api/revisions/04789afedcb3/schema)
