Delete an Instance
4 min
you can delete the specified cubes instance within a data center warning if the query parameter is set to true , the attached storage volumes will also be removed; otherwise, a separate api call must be made for these actions deleting an instance also deletes the direct attached storage nvme volume make a snapshot first in case you need to recreate the instance with the appropriate data device later endpoint use the following endpoint for cubes https //api ionos com/cloudapi/v6/datacenters/{datacenterid}/servers request note the following request contains sample values remember to replace them with the relevant information curl x 'delete' \\ 'https //api ionos com/cloudapi/v6/datacenters/{datacenterid}/servers/{serverid}' \\ h 'accept application/json' to make authenticated requests to the api, the following fields are mandatory in the request header name type description datacenterid string the id of the data center serverid string the id of the cube response a 202 message confirms that the instance is deleted
