ActiveMQ - delete/purge all queue via command line

后端 未结 5 1423
我在风中等你
我在风中等你 2021-02-19 13:11

Is there a way to delete / purge all queues in ActiveMQ via the command line (win/linux)? I could only find the commands for a specific queue. Or maybe there\'s a way to do this

5条回答
  •  花落未央
    2021-02-19 13:18

    You can do tweak your activemq.xml a bit:

    
    

    This works with KahaDB message stores (it has problems with JDBC message stores), all your messages get deleted and subsequently queues are cleared.

    As you want all queues to be deleted, restarting the broker won't be a costly option to clean everything up.

    The purge will happen on 'every' restart

提交回复
热议问题