# DELETE /load/sessions/{id}

First published 26 Oct 2026 (release 0.2.17) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the load group.

Stop a running Load monitor session or remove an ended session

- Who may call it: administrator
- Token scope, any of: settings, all
- Answers: 200 OK

If the specified session is running, the operation stops it regardless of who started it. Its readings are retained if keep is true. If the specified session has ended, the operation removes it and its readings.

An invalid session ID format returns 400.

## As commands

- [urbestack-load-session-stop](https://urbestack.com/docs/commands/urbestack-load-session-stop.md): Stops the running Load monitor session, regardless of who started it.
- [urbestack-load-session-remove](https://urbestack.com/docs/commands/urbestack-load-session-remove.md): Removes an ended Load monitor session and its readings.

## Parameters

- `id` (path, string, matching ^[0-9]{8}-[0-9]{6}$, required): Session ID derived from the UTC start time, in YYYYMMDD-HHMMSS format. Example ID 20261025-171203.

## Example

Set $API to the base URL and $TOKEN to the token, as the [API overview](https://urbestack.com/docs/api.md) shows.

```
curl -sS -X DELETE "$API/load/sessions/1" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "removed": "text",
  "session": {
    "ended_at": "text",
    "ends_at": "text",
    "every": 1,
    "how": "done",
    "id": 1,
    "keep": true,
    "readings": 1,
    "started_at": "2026-09-09T10:15:01Z",
    "started_by": "text",
    "state": "running",
    "stopped_by": "text",
    "taken": 1,
    "worst": {
      "apache_busy_max": 1,
      "apache_full": 1,
      "blocked_max": 1,
      "disk": {
        "busy_pct": 1,
        "name": "alice",
        "wait_ms": 1
      },
      "iowait_max": 1,
      "kernel_errors": 1,
      "load_max": 1,
      "mariadb_stuck": 1,
      "pool": {
        "domain": "example.com",
        "hits": 1,
        "kind": "domain",
        "max": 1,
        "name": "alice",
        "peak": 1,
        "php": "text",
        "waiting_peak": 1
      },
      "query": {
        "database": "alice_shop",
        "seconds": 1,
        "state": "text",
        "user": "alice"
      },
      "running_max": 1,
      "steal_max": 1,
      "threads_running_max": 1
    }
  }
}
```

## Errors

- 400: --id is required
- 400: A session ID is the moment it started, like 20261025-171203
- 400: Invalid id
- 401: Authentication required
- 404: No session <cur.id>
- 404: No session <id>
- 409: No session is running
- 409: Session 
- 409: Session <id> is running; stop it first
