Delete a storage bucket
curl --request DELETE \
--url https://api.uplint.dev/api/v1/tenants/{tenant_id}/storage-configs/{config_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.uplint.dev/api/v1/tenants/{tenant_id}/storage-configs/{config_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.uplint.dev/api/v1/tenants/{tenant_id}/storage-configs/{config_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.uplint.dev/api/v1/tenants/{tenant_id}/storage-configs/{config_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://api.uplint.dev/api/v1/tenants/{tenant_id}/storage-configs/{config_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://api.uplint.dev/api/v1/tenants/{tenant_id}/storage-configs/{config_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.uplint.dev/api/v1/tenants/{tenant_id}/storage-configs/{config_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{
"status": "SUCCESS",
"message": "Storage bucket deleted successfully",
"data": {
"config_id": "cfg_a1b2c3d4e5f6",
"deleted": true
},
"timestamp": "2026-02-10T12:00:00Z"
}{
"status": "ERROR",
"message": "Invalid or missing API key",
"errors": [
"Authentication required"
],
"timestamp": "2026-02-10T12:00:00Z"
}{
"status": "ERROR",
"message": "Admin scope required",
"errors": [
"Insufficient permissions"
],
"timestamp": "2026-02-10T12:00:00Z"
}{
"status": "ERROR",
"message": "Resource not found",
"errors": [
"Not found"
],
"timestamp": "2026-02-10T12:00:00Z"
}{
"status": "ERROR",
"message": "Cannot delete a bucket still bound to 3 context(s)",
"errors": [
"Reassign contexts or set another default first"
],
"timestamp": "2026-02-10T12:00:00Z"
}Storage Buckets
Delete Storage Bucket
Delete a storage bucket. Refused when the bucket is the tenant’s default or is still bound to one or more file contexts — reassign those contexts or set a different default first.
DELETE
/
api
/
v1
/
tenants
/
{tenant_id}
/
storage-configs
/
{config_id}
Delete a storage bucket
curl --request DELETE \
--url https://api.uplint.dev/api/v1/tenants/{tenant_id}/storage-configs/{config_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.uplint.dev/api/v1/tenants/{tenant_id}/storage-configs/{config_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.uplint.dev/api/v1/tenants/{tenant_id}/storage-configs/{config_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.uplint.dev/api/v1/tenants/{tenant_id}/storage-configs/{config_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://api.uplint.dev/api/v1/tenants/{tenant_id}/storage-configs/{config_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://api.uplint.dev/api/v1/tenants/{tenant_id}/storage-configs/{config_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.uplint.dev/api/v1/tenants/{tenant_id}/storage-configs/{config_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{
"status": "SUCCESS",
"message": "Storage bucket deleted successfully",
"data": {
"config_id": "cfg_a1b2c3d4e5f6",
"deleted": true
},
"timestamp": "2026-02-10T12:00:00Z"
}{
"status": "ERROR",
"message": "Invalid or missing API key",
"errors": [
"Authentication required"
],
"timestamp": "2026-02-10T12:00:00Z"
}{
"status": "ERROR",
"message": "Admin scope required",
"errors": [
"Insufficient permissions"
],
"timestamp": "2026-02-10T12:00:00Z"
}{
"status": "ERROR",
"message": "Resource not found",
"errors": [
"Not found"
],
"timestamp": "2026-02-10T12:00:00Z"
}{
"status": "ERROR",
"message": "Cannot delete a bucket still bound to 3 context(s)",
"errors": [
"Reassign contexts or set another default first"
],
"timestamp": "2026-02-10T12:00:00Z"
}Authorizations
Pass an API key or JWT token. API keys can be sent as Authorization: Bearer <key> or Authorization: <key>.
Path Parameters
The tenant's unique identifier.
The storage configuration (bucket) identifier, e.g. cfg_a1b2c3d4e5f6.
Was this page helpful?
⌘I

