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 quickstart
profile. To learn more, see Creating a profile to connect to a test database.
Delete the previously created topic:
ydb -p quickstart topic drop my-topic