---
title: "Delete stateful sessions in bulk"
method: POST
path: "/v1/proxy/packages/{package_id}/stateful-sessions/delete"
tags: ["Stateful Sessions"]
---

# Delete stateful sessions in bulk

`POST /v1/proxy/packages/{package_id}/stateful-sessions/delete`

## Request

- Base URL: `https://api.platform.soax.com`
- URL: `https://api.platform.soax.com/v1/proxy/packages/{package_id}/stateful-sessions/delete`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/soax/apis/soax-api/docs/v1/proxy/packages/:package_id/stateful-sessions/delete/post.ts> (a function with typed inputs; its response is checked against the schema)

Delete up to 100 sessions on a package in one call. `ids` must be session UUIDs.

Requires the `proxy:packages:write` scope.

## Path parameters

- `package_id` string, required: The ID of the proxy package (UUID format)

## Request body

- StatefulSessionBulkDeleteRequest
  - `ids` string[], required: Session UUIDs to delete, up to 100.

## Response `204`

Successful Response

## Other responses

- `401`: Missing, invalid, or revoked API key.
- `403`: The API key does not carry the scope this endpoint requires.
- `404`: The resource does not exist, belongs to another organization, or is outside the API key's package restriction.
- `422`: Validation Error
- `429`: Rate limit exceeded (5 requests/second per API key, 500 requests/minute per IP). The response includes `Retry-After` (seconds), `RateLimit-Limit`, `RateLimit-Remaining`, and `RateLimit-Reset` (Unix time) headers — wait `Retry-After` seconds and retry.

---

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