# sessions.destroy

Source: https://docs.scrappey.com/docs/sessions-destroy

> Cleanly shuts down a browser session and frees up system resources.

## Parameters

| Parameter | Type | Required | Description |
| --------- | ------ | -------- | ------------------------------------------ |
| `session` | string | Yes | The ID of the session you want to destroy. |

## Request

```json
{
    "cmd": "sessions.destroy",
    "session": "my-session-id"
}
```

## Response

```json
{
    "solution": {},
    "data": "success",
    "timeElapsed": 14,
    "session": "my-session-id"
}
```

## Related concepts

Go deeper in the [Scrappey knowledge base](https://scrappey.com/qa):

- [Stateful web scraping](https://scrappey.com/qa/web-scraping-apis/what-is-stateful-web-scraping) — reusing cookies and state across requests
