---
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

> 15 revisions in range; 12 could not be searched.

- **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)
