This article shows how to perform garbage collection (GC) on a specific ActiveMQ broker using the REST API.
Perform GC on ActiveMQ Broker
POST /activemq/brokers/{nodeName}/{managerName}/{brokerName}/gc
Performs GC on an ActiveMQ broker.
Example Request
curl -X 'POST' \ 'http://<hostname>:8019/rest/v1/activemq/brokers/CMACTIVEMQ/Activemq-server/DemoBroker/gc' \ -H 'accept: */*' \ -H 'Authorization: Basic QWRtaW46YWRtaW4=' \ -d ''
Query Parameters
| Parameter | Type | Description |
|---|---|---|
jobDate | integer | Schedule job date (Unix Timestamp). |
jobTags | string | Comma-separated list of job tags (used only with jobDate). |
validateAccessForUser | string | Validate endpoint access for user. |
Response Codes
201 Object created – GC executed successfully.
304 Action failed – GC action did not complete.
* – Error response, returns ErrorPojo.
Response Header
201 Object created – GC executed successfully.
access-control-allow-credentials: true
access-control-allow-origin: http://<hostname>:8019
date: Tue,30 Sep 2025 08:05:09 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