# DELETE /chat-widgets/:widget_id/sessions/:session_id

**Resource:** [CHAT_WIDGETS](./chat-widgets.md)  
**MCP tool:** `delete_chat_widget_session`  
**Scopes:** `chat-widgets:write`  
**Write operation:** yes

Erase one saved chat: its messages and the visitor details are removed for good. A small record of counts and the level stays. Leads already created are not touched.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `widget_id` | path | string | yes | The chat widget id. |
| `session_id` | path | string | yes | The chat id. |
| `require_approval` | query | boolean | no | Optional. Set true to route this write into the approval queue for human review instead of executing it immediately (returns 202 + an approval_id). Works even when your key/token has permission to execute directly. |

## Request example

```bash
curl -X DELETE   "https://api.trustpager.com/functions/v1/api/v1/chat-widgets/:widget_id/sessions/:session_id"   -H "Authorization: Bearer YOUR_API_KEY"
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`