Bulk permanent delete
curl --request DELETE \
--url https://versuno.ai/api/public/assets/trash \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"assetIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'import requests
url = "https://versuno.ai/api/public/assets/trash"
payload = { "assetIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"] }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({assetIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']})
};
fetch('https://versuno.ai/api/public/assets/trash', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://versuno.ai/api/public/assets/trash"
payload := strings.NewReader("{\n \"assetIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}")
req, _ := http.NewRequest("DELETE", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://versuno.ai/api/public/assets/trash",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_POSTFIELDS => json_encode([
'assetIds' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}require 'uri'
require 'net/http'
url = URI("https://versuno.ai/api/public/assets/trash")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"assetIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}"
response = http.request(request)
puts response.read_bodyHttpResponse<String> response = Unirest.delete("https://versuno.ai/api/public/assets/trash")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"assetIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://versuno.ai/api/public/assets/trash");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "<api-key>");
request.AddJsonBody("{\n \"assetIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}", false);
var response = await client.DeleteAsync(request);
Console.WriteLine("{0}", response.Content);
{
"success": true,
"count": 3
}{
"error": "Wrong data: assetType is required"
}{
"error": "Invalid API key"
}{
"error": "Not found"
}{
"error": "Asset is already in trash"
}Bulk Asset Trash
Bulk permanent delete
Permanently deletes assets from trash. If assetIds is omitted, permanently deletes all trashed assets. All provided assets must already be in trash — active assets return 409. This is irreversible.
DELETE
/
assets
/
trash
Bulk permanent delete
curl --request DELETE \
--url https://versuno.ai/api/public/assets/trash \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"assetIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'import requests
url = "https://versuno.ai/api/public/assets/trash"
payload = { "assetIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"] }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({assetIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']})
};
fetch('https://versuno.ai/api/public/assets/trash', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://versuno.ai/api/public/assets/trash"
payload := strings.NewReader("{\n \"assetIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}")
req, _ := http.NewRequest("DELETE", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://versuno.ai/api/public/assets/trash",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_POSTFIELDS => json_encode([
'assetIds' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}require 'uri'
require 'net/http'
url = URI("https://versuno.ai/api/public/assets/trash")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"assetIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}"
response = http.request(request)
puts response.read_bodyHttpResponse<String> response = Unirest.delete("https://versuno.ai/api/public/assets/trash")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"assetIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://versuno.ai/api/public/assets/trash");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "<api-key>");
request.AddJsonBody("{\n \"assetIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}", false);
var response = await client.DeleteAsync(request);
Console.WriteLine("{0}", response.Content);
{
"success": true,
"count": 3
}{
"error": "Wrong data: assetType is required"
}{
"error": "Invalid API key"
}{
"error": "Not found"
}{
"error": "Asset is already in trash"
}Authorizations
Versuno API key. Must be prefixed with Bearer. Format: Bearer uk_live_...
Body
application/json
Maximum array length:
100Was this page helpful?
⌘I

