---
title: "Delete a session's accounting"
method: DELETE
path: "/v1/token-accounting/session"
tags: ["System"]
---

# Delete a session's accounting

`DELETE /v1/token-accounting/session`

## Request

- Base URL: `http://localhost:9998`
- URL: `http://localhost:9998/v1/token-accounting/session`
- Auth: HTTP bearer

Deletes the session's attempts and projection and tombstones it, so no replayed observation can restore it. Requires tools:exec.

## Query parameters

- `session_id` string, required

## Response `200`

The committed deletion change

- TokenLedgerChange
  - `seq` integer, required
  - `sessionId` string, required
  - `kind` 'attempt' | 'sessionDeleted', required
  - `completionId` string, nullable
  - `attemptOrdinal` integer, nullable
  - `revision` integer, nullable
  - `committedAt` string, date-time, required

---

[API](https://skmtc.dev/modelpiper/apis/toolpiper-api.md) · [All operations](https://skmtc.dev/modelpiper/apis/toolpiper-api/llms.txt) · [OpenAPI document](https://skmtc.dev/modelpiper/apis/toolpiper-api/revisions/6722bf56385c?raw)
