---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.6
alternate:
  - https://ydb.tech/docs/en/reference/ydb-cli/topic-drop.md?version=main
  - https://ydb.tech/docs/ru/reference/ydb-cli/topic-drop.md?version=main
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=main) 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=main).
* `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=main#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=main) topic:

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