---
title: "Delete topic"
method: DELETE
path: "/v1/topics/{topicKey}"
tags: ["Topics"]
---

# Delete topic

`DELETE /v1/topics/{topicKey}`

Delete a topic by its topic key if it has no subscribers

## Path parameters

- `topicKey` string, required

## Response `204`

The topic has been deleted correctly

## Other responses

- `404` — The topic with the key provided does not exist in the database so it can not be deleted.
- `409` — The topic you are trying to delete has subscribers assigned to it. Delete the subscribers before deleting the topic.

---

[API](https://skmtc.dev/cequens/apis/authentication.md) · [All operations](https://skmtc.dev/cequens/apis/authentication/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cequens/authentication/revisions/deadb0661f19/schema)
