<@U078Y59KC3B> is there any command to list all su...
# ask-ai
s
@RunLLM is there any command to list all subscriptions of a topic?
r
Yes, you can list all the existing subscriptions of a topic using the
pulsar-admin
tool or the
pulsarctl
command. The command for
pulsar-admin
is
pulsar-admin topics subscriptions <topic-name>
, and for
pulsarctl
, it is
pulsarctl subscriptions list <topic-name>
. Both commands require appropriate permissions, such as tenant admin and namespace produce or consume permissions. Would you like more details on how to use these commands? Sources: - Pulsar Admin API - Get Subscriptions - Pulsarctl Command Reference 👍 1 button 👎 0 button 💡 Hint: Mention @RunLLM in the thread for followups.
s
@RunLLM command to delete a subscription for a topic?
r
To delete a subscription for a topic, you can use the
pulsar-admin
tool with the command
pulsar-admin topics unsubscribe --subscription <subscription-name> <topic-name>
. Alternatively, you can use the
pulsarctl
command with
pulsarctl subscriptions delete <topic-name> <subscription-name>
. Both commands require tenant admin and namespace consume permissions. Would you like more details on using these commands? Sources: - Pulsar Admin API - Unsubscribe - Pulsarctl Command Reference 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.