curl --request DELETE \
--url https://console.deepest.dev/v1/computers/{computer_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://console.deepest.dev/v1/computers/{computer_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://console.deepest.dev/v1/computers/{computer_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://console.deepest.dev/v1/computers/{computer_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://console.deepest.dev/v1/computers/{computer_id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://console.deepest.dev/v1/computers/{computer_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://console.deepest.dev/v1/computers/{computer_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"ok": true,
"resource_id": "<string>",
"retry": "safe",
"result": {
"id": "<string>",
"deleted": true
}
}{
"ok": false,
"resource_id": "<string>",
"retry": "safe",
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {
"tool_id": "<string>",
"status": "success",
"reason": "verified",
"version": "<string>",
"launch": "<string>"
},
"retry_after_seconds": 2,
"limit": {
"dimension": "memory",
"scope": "account"
}
}
}{
"ok": false,
"resource_id": "<string>",
"retry": "safe",
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {
"tool_id": "<string>",
"status": "success",
"reason": "verified",
"version": "<string>",
"launch": "<string>"
},
"retry_after_seconds": 2,
"limit": {
"dimension": "memory",
"scope": "account"
}
}
}Delete a Computer
Deletes this Computer, its private disk, attached disk snapshots, and SSH authorizations. Destructive action: call only for an explicitly authorized deletion of this exact Computer and its attached snapshots. The Computer is normally stopped before removal; no forced termination is implied. Successful deletion removes its Computer-scoped keys and invalidates its product identity. A deleted ID cannot be reused for a replacement Computer. RESOURCE_CONFLICT means a remaining dependency prevented completion; inspect the original objects and resolve only authorized dependencies before an explicit repeat. Some attached snapshots may already have been removed. No force removal of shared references is implied. After UNKNOWN, query the original ID before any repeat; NOT_FOUND confirms the product asset is absent.
curl --request DELETE \
--url https://console.deepest.dev/v1/computers/{computer_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://console.deepest.dev/v1/computers/{computer_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://console.deepest.dev/v1/computers/{computer_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://console.deepest.dev/v1/computers/{computer_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://console.deepest.dev/v1/computers/{computer_id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://console.deepest.dev/v1/computers/{computer_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://console.deepest.dev/v1/computers/{computer_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"ok": true,
"resource_id": "<string>",
"retry": "safe",
"result": {
"id": "<string>",
"deleted": true
}
}{
"ok": false,
"resource_id": "<string>",
"retry": "safe",
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {
"tool_id": "<string>",
"status": "success",
"reason": "verified",
"version": "<string>",
"launch": "<string>"
},
"retry_after_seconds": 2,
"limit": {
"dimension": "memory",
"scope": "account"
}
}
}{
"ok": false,
"resource_id": "<string>",
"retry": "safe",
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {
"tool_id": "<string>",
"status": "success",
"reason": "verified",
"version": "<string>",
"launch": "<string>"
},
"retry_after_seconds": 2,
"limit": {
"dimension": "memory",
"scope": "account"
}
}
}