Deleting a topic

You can use the topic drop subcommand to delete a previously created topic.


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

General format of the command:

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

View the description of the delete topic command:

ydb topic drop --help



The examples use the db1 profile. To learn more, see Creating a connection profile.

Delete the previously created topic:

ydb -p db1 topic drop my-topic