---
title: Delete Session
description: "Permanently delete a PocketPaw chat session and all its associated messages. This action is irreversible and removes the session from the index and storage."
api: DELETE /api/sessions/{session_id}
baseUrl: http://localhost:8000
layout: '@/layouts/APIEndpointLayout.astro'
auth: bearer
section: API Reference
ogType: article
keywords: ["delete session", "remove conversation", "permanent delete"]
tags: ["api", "sessions"]
---
## Overview
Permanently deletes a session and all its associated messages from the file store. This action cannot be undone.
## Parameters
The unique identifier of the session to delete.
## Response
`"ok"` on successful deletion.
```bash
curl -X DELETE "http://localhost:8000/api/sessions/session_abc123" \
-H "Authorization: Bearer "
```
```javascript
const sessionId = "session_abc123";
const response = await fetch(`http://localhost:8000/api/sessions/${sessionId}`, {
method: "DELETE",
headers: { "Authorization": "Bearer " }
});
const data = await response.json();
console.log(data);
```
```python
import requests
session_id = "session_abc123"
response = requests.delete(
f"http://localhost:8000/api/sessions/{session_id}",
headers={"Authorization": "Bearer "},
)
print(response.json())
```
```json
{ "status": "ok" }
```
```json
{ "detail": "Session not found" }
```