Delete Session Resource
api/beta/sessions/resources/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.
api/beta/sessions/resources/delete Changed · +9 / -16 lines
# Delete Session Resource ## Path parameters ## Headers ## Returns ## Example ### Response (200) ## Delete Session Resource ### Path Parameters ### Header Parameters ### Returns ### Example #### Response
---- -title: Delete Session Resource -url: https://platform.claude.com/docs/en/api/beta/sessions/resources/delete ---- +# Delete Session Resource -## Delete Session Resource +**DELETE** `/v1/sessions/{session_id}/resources/{resource_id}` -**delete** `/v1/sessions/{session_id}/resources/{resource_id}` - Delete Session Resource -### Path Parameters +## Path parameters - `session_id: string` - `resource_id: string` -### Header Parameters +## Headers - `"anthropic-beta": optional array of AnthropicBeta`
- `"mid-conversation-tool-changes-2026-07-01"` -### Returns +## Returns -- `BetaManagedAgentsDeleteSessionResource object { id, type }` +- `BetaManagedAgentsDeleteSessionResource object` Confirmation of resource deletion.
- `type: "session_resource_deleted"` - - `"session_resource_deleted"` +## Example -### Example - -```http +```bash curl https://api.anthropic.com/v1/sessions/$SESSION_ID/resources/$RESOURCE_ID \ -X DELETE \ -H 'anthropic-version: 2023-06-01' \
-H "X-Api-Key: $ANTHROPIC_API_KEY" ``` -#### Response +### Response (200) ```json {