---
title: "Delete Thread"
method: POST
path: "/api/delete-thread/{thread_id}"
tags: ["Thread Management"]
---

# Delete Thread

`POST /api/delete-thread/{thread_id}`

Permanently deletes a thread and its dependent data.

This endpoint first deletes all messages for the thread to satisfy
foreign key constraints, then deletes the thread itself. If the
thread is using session storage, the session is closed and any
persisted data is cleaned up by the session manager.

## Path parameters

- `thread_id` string, required — The ID of the thread to delete

## Query parameters

- `user_id` string
- `org_id` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/every/apis/every-api.md) · [All operations](https://skmtc.net/every/apis/every-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/every/every-api/versions/f8600f7a4ae3/schema)
