This article shows how to purge all messages from an ActiveMQ queue using the REST API.
Purge ActiveMQ Queue
POST /activemq/queues/{nodeName}/{managerName}/{brokerName}/{queueName}/purge
Purge all messages in an ActiveMQ queue.
Example Request
curl -X 'POST' \ 'http://<hostname>:8019/rest/v1/activemq/queues/CMACTIVEMQ/Activemq-server/DemoBroker/iss/purge' \ -H 'accept: */*' \ -H 'Authorization: Basic QWRtaW46YWRtaW4=' \ -d ''
Query Parameters
jobDate(int64) – Schedule job date (Unix Timestamp).jobTags(string) – Job tags (used only with jobDate).validateAccessForUser(string) – Validate access for user.
Response Codes
201– Object created.304– Action failed.*– Error response.
Response Header
201 – Object created.
access-control-allow-credentials: true
access-control-allow-origin: http://<hostname>:8019
content-length: 0
date: Wed,24 Sep 2025 11:23:12 GMT
server: Jetty(10.0.22)
vary: Origin
Reference Articles
Using the REST API using the Navigator demo system
Performing REST API operations using the Swagger UI