List and delete Pulsar topics in a namespace

domain: pulsar.apache.org · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. List all persistent topics in a namespace: pulsar-admin topics list {tenant}/{namespace} — this returns persistent:// URIs for all topics.
  2. To include partitioned topics, also run: pulsar-admin topics list-partitioned-topics {tenant}/{namespace}
  3. Check if a topic has any active subscriptions or producers before deleting: pulsar-admin topics stats {tenant}/{namespace}/{topic-name}
  4. 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.
  5. Delete a partitioned topic: pulsar-admin topics delete-partitioned-topic persistent://{tenant}/{namespace}/{topic-name}

Known gotchas

Related routes

Configure Apache Pulsar message deduplication at the namespace and topic level
pulsar.apache.org · 5 steps · unrated
Configure Pulsar topic compaction, retention, and TTL
data-engineering · 5 steps · unrated
Create a Pulsar namespace with retention and backlog quota policies
pulsar.apache.org · 5 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans