Delete Session changedapi/beta/sessions/delete
Nearest release: v2.1.245, published an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+9added
Lines−16removed
From line
1
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits17to this page, all time
# Delete Session ## Path parameters ## Headers ## Returns ## Example ### Response (200) ## Delete Session ### Path Parameters ### Header Parameters ### Returns ### Example #### Response
The whole hunk
from line 1, old and new numbered
/
from line 1
1---
2title: Delete Session
3url: https://platform.claude.com/docs/en/api/beta/sessions/delete
4---
1# Delete Session
52
6## Delete Session
3**DELETE** `/v1/sessions/{session_id}`
74
8**delete** `/v1/sessions/{session_id}`
9
105Delete Session
116
12### Path Parameters
7## Path parameters
138
149- `session_id: string`
1510
16### Header Parameters
11## Headers
1712
1813- `"anthropic-beta": optional array of AnthropicBeta`
1914
from line 86
9186
9287 - `"mid-conversation-tool-changes-2026-07-01"`
9388
94### Returns
89## Returns
9590
96- `BetaManagedAgentsDeletedSession object { id, type }`
91- `BetaManagedAgentsDeletedSession object`
9792
9893 Confirmation that a `session` has been permanently deleted.
9994
from line 96
10196
10297 - `type: "session_deleted"`
10398
104 - `"session_deleted"`
99## Example
105100
106### Example
107
108```http
101```bash
109102curl https://api.anthropic.com/v1/sessions/$SESSION_ID \
110103 -X DELETE \
111104 -H 'anthropic-version: 2023-06-01' \
from line 106
113106 -H "X-Api-Key: $ANTHROPIC_API_KEY"
114107```
115108
116#### Response
109### Response (200)
117110
118111```json
119112{
No line in this hunk matches that.