Delete Artifact
curl --request DELETE \
--url https://api.example.com/v0/operator/artifacts/{publicId}import requests
url = "https://api.example.com/v0/operator/artifacts/{publicId}"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://api.example.com/v0/operator/artifacts/{publicId}', 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.example.com/v0/operator/artifacts/{publicId}",
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.example.com/v0/operator/artifacts/{publicId}"
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.example.com/v0/operator/artifacts/{publicId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v0/operator/artifacts/{publicId}")
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_bodyOperators
Delete Artifact
DELETE /v0/operator/artifacts/:publicId — Destroy an artifact; the URL returns 410 Gone
DELETE
/
v0
/
operator
/
artifacts
/
{publicId}
Delete Artifact
curl --request DELETE \
--url https://api.example.com/v0/operator/artifacts/{publicId}import requests
url = "https://api.example.com/v0/operator/artifacts/{publicId}"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://api.example.com/v0/operator/artifacts/{publicId}', 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.example.com/v0/operator/artifacts/{publicId}",
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.example.com/v0/operator/artifacts/{publicId}"
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.example.com/v0/operator/artifacts/{publicId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v0/operator/artifacts/{publicId}")
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_bodyPermanently destroys an artifact. The artifact is tombstoned — its shareable URL immediately starts returning
410 Gone with a tombstone page. This action is irreversible.
Requires user auth (ut_ token). The operator must be bound to the agent that owns the artifact.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
publicId | string | Yes | The unique identifier of the artifact to delete |
curl -X DELETE https://api.tokenrip.com/v0/operator/artifacts/ast_01hx9r3k2mfgxyz1234abcd \
-H "Authorization: Bearer ut_live_AbCdEfGhIjKlMnOpQrStUvWx"
Example response
{
"ok": true,
"data": {}
}
Response fields
Thedata object is empty on success. Check ok: true to confirm deletion.
Deletion is permanent and cannot be undone. The artifact’s shareable URL will return
410 Gone immediately after this call succeeds.⌘I