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

# Delete topic

`DELETE /topics/{topicId}`

## Request

- Base URL: `https://api.youscan.io/api/external`
- URL: `https://api.youscan.io/api/external/topics/{topicId}`
- Auth: one of:
  - API key in header `X-API-KEY`
  - API key in query parameter `apiKey`
- TypeScript: <https://skmtc.dev/youscan/apis/youscan-api/docs/topics/:topicId/delete.ts> (a function with typed inputs; its response is checked against the schema)

Deletes a topic and all its associated data. This action is irreversible.

## Path parameters

- `topicId` integer, required

## Response `200`

Topic deleted successfully.

- boolean

## Other responses

- `401`: The API key is missing or invalid.
- `403`: Your permission level for this topic is too low for the action.
- `404`: Topic not found or you don't have access to it.

---

[API](https://skmtc.dev/youscan/apis/youscan-api.md) - [All operations](https://skmtc.dev/youscan/apis/youscan-api/llms.txt) - [OpenAPI document](https://skmtc.dev/youscan/apis/youscan-api/revisions/f5bef260f153?raw)
