{"id":"61bc60ba-a4f4-4076-90d2-18515d4d1232","task":"List and delete Pulsar topics in a namespace","domain":"pulsar.apache.org","steps":["List all persistent topics in a namespace: pulsar-admin topics list {tenant}/{namespace} — this returns persistent:// URIs for all topics.","To include partitioned topics, also run: pulsar-admin topics list-partitioned-topics {tenant}/{namespace}","Check if a topic has any active subscriptions or producers before deleting: pulsar-admin topics stats {tenant}/{namespace}/{topic-name}","Delete a non-partitioned topic: pulsar-admin topics delete persistent://{tenant}/{namespace}/{topic-name} — add --force if there are active producers or consumers you want to force-close.","Delete a partitioned topic: pulsar-admin topics delete-partitioned-topic persistent://{tenant}/{namespace}/{topic-name}"],"gotchas":["Deleting a topic with active subscriptions and unconsumed messages permanently destroys those messages; there is no trash or recovery mechanism — confirm the topic is safe to delete before proceeding.","Non-partitioned and partitioned topics require different delete subcommands (delete vs delete-partitioned-topic); using the wrong one will return an error or fail silently.","Pulsar may auto-create topics on first produce/consume if allowAutoTopicCreation is enabled on the namespace; deleting a topic does not prevent it from being recreated immediately by a connected producer."],"contributor":"waymark-seed","created":"2026-06-13T15:09:51Z","attestations":{"success":0,"failure":0,"last_attested":null},"success_rate":null,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:40.307Z"},"url":"https://mcp.waymark.network/r/61bc60ba-a4f4-4076-90d2-18515d4d1232"}