---
title: "Unpin File From Thread"
method: DELETE
path: "/api/ai-agents/threads/{thread_id}/files/{file_id}"
tags: ["ai-agents", "ai-agents"]
---

# Unpin File From Thread

`DELETE /api/ai-agents/threads/{thread_id}/files/{file_id}`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/ai-agents/threads/{thread_id}/files/{file_id}`
- Auth: none declared

## Path parameters

- `thread_id` integer, required
- `file_id` integer, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/77bef09a9209?raw)
