Deleting a topic
You can use the topic drop
subcommand to delete a previously created topic.
Note
Deleting a topic also deletes all the consumers added for it.
General format of the command:
ydb [global options...] topic drop <topic-path>
global options
: Global parameters.topic-path
: Topic path.
View the description of the delete topic command:
ydb topic drop --help
Examples
Note
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