---
title: Delete Session Resource
url: https://platform.claude.com/docs/en/api/cli/beta/sessions/resources/delete
---

# Delete Session Resource

`$ ant beta:sessions:resources delete`

**DELETE** `/v1/sessions/{session_id}/resources/{resource_id}`

Delete Session Resource

## Parameters

- `--session-id: string` (path parameter)

- `--resource-id: string` (path parameter)

- `--beta: optional array of AnthropicBeta` (header parameter)

  This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this header.

- `--workspace-id: optional string` (header parameter)

  Optional header to select the Workspace for this request. The value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).

  Only needed for credentials that can act on more than one Workspace. A credential that belongs to a specific Workspace may omit it; if sent, it must match that Workspace.

## Returns

- `beta_managed_agents_delete_session_resource: object`

  Confirmation of resource deletion.

  - `type: "session_resource_deleted"`

  - `id: string`

## Example

```bash
ant beta:sessions:resources delete \
  --api-key my-anthropic-api-key \
  --session-id sesn_011CZkZAtmR3yMPDzynEDxu7 \
  --resource-id sesrsc_011CZkZBJq5dWxk9fVLNcPht
```

### Response (200)

```json
{
  "id": "sesrsc_011CZkZBJq5dWxk9fVLNcPht",
  "type": "session_resource_deleted"
}
```
