This article shows how to remove all message groups from an ActiveMQ queue using the REST API.
Remove All Message Groups
DELETE /activemq/queues/{nodeName}/{managerName}/{brokerName}/{queueName}/message-groups
Remove all message groups.
Example Request
curl -X 'DELETE' \ 'http://<hostname>:8019/rest/v1/activemq/queues/CMACTIVEMQ/Activemq-server/DemoBroker/sample711/message-groups' \ -H 'accept: */*' \ -H 'Authorization: Basic QWRtaW46YWRtaW4='
Query Parameters
| Parameter | Type | Description |
|---|---|---|
jobDate |
integer | Schedule job date (Unix Timestamp). |
jobTags |
string | Job tags (used only with jobDate). |
validateAccessForUser |
string | Validate access for user. |
Response Codes
204– Object Deleted.304– Object Not changed.*– Error response.
Response Headers
204 – Object Deleted.
access-control-allow-credentials: true access-control-allow-origin: http://<hostname>:8019 date: Thu, 25 Sep 2025 12:00:00 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