---
title: "Clean up terminated session workspaces"
method: POST
path: "/api/v1/sessions/cleanup"
tags: ["sessions"]
---

# Clean up terminated session workspaces

`POST /api/v1/sessions/cleanup`

## Query parameters

- `project` string — Project id filter. When omitted, clean terminated sessions across all projects.

## Response `200`

OK

- CleanupSessionsResponse
  - `cleaned` string[], required
  - `ok` boolean, required
  - `skipped` CleanupSkippedSession[], required
    - `reason` string, required
    - `sessionId` string, required

## Other responses

- `500` — Internal Server Error
- `501` — Not Implemented

## Changes

- **2026-06-11** `9e535c29fe69` — 1 info
  - added the required property `skipped` to the response with the `200` status
- **2026-06-10** `b64f5ab46d87` — 1 breaking
  - removed the required property `skipped` from the response with the `200` status

[Change history](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/changes/api/v1/sessions/cleanup/post.md)

---

[API](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon.md) · [All operations](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/composiohq/agent-orchestrator-http-daemon/revisions/513f2a8dd71b/schema)
