---
title: "Delete Steep Session"
method: DELETE
path: "/api/v1/steep/sessions/{session_id}"
tags: ["authed"]
---

# Delete Steep Session

`DELETE /api/v1/steep/sessions/{session_id}`

## Request

- Base URL: `https://api.teaflask.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.teaflask.com/api/v1/steep/sessions/{session_id}`
- Auth: none declared

Deletes one journey: it leaves every list at once and takes no more
events, and its data is removed from storage after. Deleting it again
answers the same receipt.

## Path parameters

- `session_id` string, uuid, required

## Response `202`

Successful Response

- SteepErasureReceipt: The receipt for one deletion: a single journey, or every journey of one end user.
  - `id` string, uuid, required: The deletion's id.
  - `scope` 'session' | 'end_user', required
  - `session_id` string, uuid, nullable, required: The journey deleted; null for an end user's deletion.
  - `end_user_id` string, nullable, required: The end user whose journeys were deleted; null for one journey's deletion, and null once the deletion is 2 days old.
  - `requested_at` string, date-time, required: When the deletion was asked for.
  - `status` 'pending' | 'completed', required
  - `deleted_session_count` integer, required: How many journeys the deletion removed; 0 for an end user with none stored yet.
  - `completed_at` string, date-time, nullable, required: When the data was gone from storage; null while pending.

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `405`: Method not allowed
- `422`: Validation error
- `500`: Internal server error

## Changes

- **2026-11-03** `c6ac9fd6657f`: 6 info
  - removed the `STEEP_LEARNING_DISABLED` enum value from the `error/code` response property for the response status `401`
  - removed the `STEEP_LEARNING_DISABLED` enum value from the `error/code` response property for the response status `403`
  - removed the `STEEP_LEARNING_DISABLED` enum value from the `error/code` response property for the response status `404`
  - removed the `STEEP_LEARNING_DISABLED` enum value from the `error/code` response property for the response status `405`
  - …2 more

[Operation history](https://skmtc.dev/teaflask/apis/teaflask-api/changes/api/v1/steep/sessions/:session_id/delete.md)

---

[API](https://skmtc.dev/teaflask/apis/teaflask-api.md) - [All operations](https://skmtc.dev/teaflask/apis/teaflask-api/llms.txt) - [OpenAPI document](https://skmtc.dev/teaflask/apis/teaflask-api/revisions/c6ac9fd6657f?raw)
