Skip to main content
DELETE
/
enterprise
/
v1
/
io-cloud
/
vmaas
/
deployment
/
{deployment_id}
Destroy Deployment
curl --request DELETE \
  --url https://api.io.solutions/enterprise/v1/io-cloud/vmaas/deployment/{deployment_id}
import requests

url = "https://api.io.solutions/enterprise/v1/io-cloud/vmaas/deployment/{deployment_id}"

response = requests.delete(url)

print(response.text)
const options = {method: 'DELETE'};

fetch('https://api.io.solutions/enterprise/v1/io-cloud/vmaas/deployment/{deployment_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.io.solutions/enterprise/v1/io-cloud/vmaas/deployment/{deployment_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.io.solutions/enterprise/v1/io-cloud/vmaas/deployment/{deployment_id}"

req, _ := http.NewRequest("DELETE", url, nil)

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.delete("https://api.io.solutions/enterprise/v1/io-cloud/vmaas/deployment/{deployment_id}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.io.solutions/enterprise/v1/io-cloud/vmaas/deployment/{deployment_id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}
When deleting a deployment, charges are handled as follows;
  • The first hour is ALWAYS non-refundable.
  • After the first hour, charges are calculated to the exact duration the cluster was active (not rounded to whole hours).
  • Any unused prepaid time is refunded proportionally.
Example: If you pre-paid for 3 hours and delete the deployment after 1.2 hours, you are charged for 1.2 hours and refunded the remaining 1.8 hours.

Headers

token
string

Path Parameters

deployment_id
string<uuid>
required

Response

Successful Response