---
title: "Unfile"
method: DELETE
path: "/api/v1/folders/{folderId}/threads"
tags: ["folders"]
---

# Unfile

`DELETE /api/v1/folders/{folderId}/threads`

## Path parameters

- `folderId` string, required

## Request body

- FileThreadsRequest
  - `threadIds` string[], required

## Response `200`

FileThreadsResult

- FileThreadsResultEncoded
  - `outcomes` ThreadOutcomeEncoded[], required
    - `threadId` string, required
    - `outcome` 'ok' | 'not_found' | 'not_allowed', required

## Other responses

- `400` — capy/InvalidRequest
- `401` — capy/Unauthorized
- `403` — capy/Forbidden
- `404` — capy/ThreadOrganizationNotFound

## Changes

- **2026-08-19** `530d92ec3e63` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/capy/apis/capy-api/changes/api/v1/folders/:folderId/threads/delete.md)

---

[API](https://skmtc.dev/capy/apis/capy-api.md) · [All operations](https://skmtc.dev/capy/apis/capy-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/capy/capy-api/revisions/6cd1e287d2c5/schema)
