Delete Queue
You must set the capacity of the queue to zero before you delete a queue.
For information about changing queue capacity using the API, see Change Queue Capacities.
The delete queue requests cannot have a body, but the version message can be passed as a query string parameter as shown in the Request URL.
Request URL
DELETE
http://<cm_host>:7180/cmf/clusters/<Cluster-id>/queue-manager-api/api/v1/environments/support/clusters/<Cluster-id>/resources/scheduler/partitions/default/queues/<path-to-the-queue>
Parameter | Description |
cm_host | Cloudera Manager host address |
Cluster-id | Name of the cluster |
path-of-the-queue | Path to the queue |
Example Request
curl -v -X DELETE -b cookie.txt --key cm-auto-host_key_decrypted.pem --cert cm-auto-host_cert_chain.pem --cacert cm-auto-global_cacerts.pem -H "Referer: https://<cm_host>:7183/cmf/clusters/Cluster%201/queue-manager/"
my-cluster-1.my-cluster.root.hwx.site:7180/cmf/clusters/Cluster201/queue-manager-api/api/v1/environments/support/clusters/Cluster201/resources/scheduler/partitions/default/queues/root.a?message=Deleted%20root.a