---
title: "Delete Topic"
method: DELETE
path: "/api/topic/{topic_id}"
tags: ["Topic"]
---

# Delete Topic

`DELETE /api/topic/{topic_id}`

Delete an existing chat topic. When a topic is deleted, all associated chat messages are also deleted. Auth'ed user or api key must have an admin or owner role for the specified dataset's organization.

## Path parameters

- `topic_id` string, uuid, required

## Headers

- `TR-Dataset` string, uuid, required

## Response `204`

Confirmation that the topic was deleted

## Other responses

- `400` — Service error relating to topic deletion

---

[API](https://skmtc.net/devflowinc/apis/trieve-api.md) · [All operations](https://skmtc.net/devflowinc/apis/trieve-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/devflowinc/trieve-api/revisions/84583e7c9fc1/schema)
