Delete Compute Zone

To delete a compute zone, use the following API call:

DELETE /settings/hypervisor_zones/:id.xml
DELETE /settings/hypervisor_zones/:id.json

XML Request example

curl -X DELETE http://onapp.test/settings/hypervisor_zones/:id.xml -u user:userpass -H 'Accept: application/xml' -H 'Content-type: application/xml'

JSON Request example

curl -X DELETE http://onapp.test/settings/hypervisor_zones/:id.json -u user:userpass -H 'Accept: application/json' -H 'Content-type: application/json'

You will get a 204 status response on success, and 404 if there is no such a compute zone with a requested ID or you entered incorrect URL.