---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://ydb.tech/docs/en/reference/ydb-cli/topic-drop.md?version=v25.4
  - https://ydb.tech/docs/ru/reference/ydb-cli/topic-drop.md?version=v25.4
  - href: en/reference/ydb-cli/topic-drop.md
    type: text/markdown
    title: Markdown version
  - href: ../../llms.txt
    type: text/markdown
    title: llms.txt
sourcePath: en/core/reference/ydb-cli/topic-drop.md
---
> **Documentation Index:** Fetch the complete configuration index at https://ydb.tech/docs/en/llms.txt

# Deleting a topic

You can use the `topic drop` subcommand to delete a [previously created](https://ydb.tech/docs/en/reference/ydb-cli/topic-create.md?version=v25.4) topic.

{% note info %}

Deleting a topic also deletes all the consumers added for it.

{% endnote %}

General format of the command:

```bash
ydb [global options...] topic drop <topic-path>
```

* `global options`: [Global parameters](https://ydb.tech/docs/en/reference/ydb-cli/commands/global-options.md?version=v25.4).
* `topic-path`: Topic path.

View the description of the delete topic command:

```bash
ydb topic drop --help
```

## Examples {#examples}

<!-- source: en/_includes/ydb-cli-profile.md -->
{% note info %}

The examples use the `quickstart` profile. To learn more, see [Creating a profile to connect to a test database](https://ydb.tech/docs/en/reference/ydb-cli/profile/create.md?version=v25.4#quickstart).

{% endnote %}
<!-- endsource: en/_includes/ydb-cli-profile.md -->

Delete the [previously created](https://ydb.tech/docs/en/reference/ydb-cli/topic-create.md?version=v25.4) topic:

```bash
ydb -p quickstart topic drop my-topic
```
