Suhas Karanth
08/01/2025, 8:48 AMRunLLM
08/01/2025, 8:48 AMpulsar-admin topics truncate persistent://tenant/namespace/topic
This operation is also available via the Java admin API as admin.topics().truncate(topic). Note that the latest ledger cannot be deleted, but all previous data is removed. Would you like more detail on how this affects subscriptions or on alternative approaches?
Sources:
- CmdTopics.java (truncate) 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.