Delete Computer snapshot
curl --request DELETE \
--url https://console.deepest.dev/v1/computers/{computer_id}/snapshots/{snapshot_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://console.deepest.dev/v1/computers/{computer_id}/snapshots/{snapshot_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}/snapshots/{snapshot_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}/snapshots/{snapshot_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}/snapshots/{snapshot_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}/snapshots/{snapshot_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://console.deepest.dev/v1/computers/{computer_id}/snapshots/{snapshot_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"
}
}
}Snapshots & Storage
Delete Computer snapshot
Delete only this explicitly selected snapshot. Does not delete the Computer. Storage usage decreases only after verified usage confirms that storage was released; data still referenced by another asset remains in use. A known in-use dependency returns RESOURCE_CONFLICT (409, no-retry); resolve that cause before explicitly retrying this same target. No force removal of shared references is implied. After UNKNOWN, query this same snapshot ID before another mutation.
DELETE
/
v1
/
computers
/
{computer_id}
/
snapshots
/
{snapshot_id}
Delete Computer snapshot
curl --request DELETE \
--url https://console.deepest.dev/v1/computers/{computer_id}/snapshots/{snapshot_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://console.deepest.dev/v1/computers/{computer_id}/snapshots/{snapshot_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}/snapshots/{snapshot_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}/snapshots/{snapshot_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}/snapshots/{snapshot_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}/snapshots/{snapshot_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://console.deepest.dev/v1/computers/{computer_id}/snapshots/{snapshot_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"
}
}
}Authorizations
accountKeyclerkSession