Page tree
Skip to end of metadata
Go to start of metadata

API Essentials

API Key Generation

Autoscaling

Backups

Credit

DNS

Firewall Rules

Flex Cloud VM Control

Getting Started with Superb Flex Cloud

IP Addresses

Logs

Network Interfaces

Recipes

SSH Keys

Templates

Test Route

Troubleshooting API Issues

Viewing Activity Logs

Virtual Server Operating Systems

Virtual Servers

VS Disks

DELETE /virtual_machines/:id 

Deletes specified Virtual Server

Sections:

Request Parameters

id – the ID of a VS you want to delete

convert_last_backup – set 1 to convert the last VS's backup to template, otherwise set 0

destroy_all_backups – set 1 to destroy all existing backups of this VS, otherwise set 0

Response Parameters

Returns 204 status on success and 422 on failure

JSON Request example

 curl -i -X DELETE -u user:userpass <api_url>/virtual_machines/:id.json?convert_last_backup=1&destroy_all_backups=1

XML Request example

 curl -i -X DELETE -u user:userpass <api_url>/virtual_machines/:id.xml?convert_last_backup=1&destroy_all_backups=1

 

 

  • No labels