---
title: "Take this chat out of its workspace. It stops using the workspace's sandbox; the workspace and its other chats are unchanged."
method: DELETE
path: "/ai/conversations/{public_id}/workspace"
tags: ["AI Chat"]
---

# Take this chat out of its workspace. It stops using the workspace's sandbox; the workspace and its other chats are unchanged.

`DELETE /ai/conversations/{public_id}/workspace`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/ai/conversations/{public_id}/workspace`
- Auth: HTTP bearer

## Path parameters

- `public_id` string, required

## Response `200`

The chat is no longer in a workspace

- ChatWorkspaceResponse: A chat's workspace, and the chats in it.
  - `chats` WorkspaceChatSummary[], required: The workspace's chats, most recently active first, at most 20.
    - `last_activity_at` string, required: ISO 8601.
    - `public_id` string, required
    - `title` string, nullable
    - `turn_status` string, required
  - `joinable` boolean, required: Whether this chat can be put in a workspace. Chats about one project cannot: the project is their scope.
  - `reason` string, nullable: Why the chat cannot be in a workspace, when `joinable` is false.
  - `workspace` ChatWorkspace: The workspace a chat is in.
    - `description` string, nullable
    - `name` string, required
    - `public_id` string, required: Public id of the workspace (`app_…`).

## Other responses

- `400`: Not an assistant chat
- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Conversation not found or not in a workspace
- `500`: Internal server error

## Changes

> 81 revisions in range; 1 not diffed.

- **2026-10-20** `79089e9f49ee`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/ai/conversations/:public_id/workspace/delete.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) · [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) · [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/ab6d5d19e930?raw)
