DELETE /virtual_machines/:virtual_machine_id/disks/:disk_id

Deletes specified disk


Request Parameters

shutdown_type - type of the VS shutdown: hard, graceful or soft

required_startup - set 1 to start up the VS automatically after deleting a disk, otherwise set 0

Response Parameters

Returns HTTP 204 response on successful deletion, or HTTP 404 when a disk with the ID specified is not found, or the URL requested is incorrect.


JSON Request example

 curl -i -X DELETE <api_url>/settings/disks/:id.json?force=1&shutdown_type=graceful&required_startup=0 -u user:userpass -H 'Accept: application/json' -H 'Content-type:application/json'

XML Request example

 curl -i -X DELETE <api_url>/settings/disks/:id.xml?force=1&shutdown_type=graceful&required_startup=0 -u user:userpass -H 'Accept: application/xml' -H 'Content-type:application/xml'