Delete an object storage bucket
import requests
url = "https://platform.ankra.app/api/v1/org/object-storage-buckets/{bucket_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/object-storage-buckets/{bucket_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://platform.ankra.app/api/v1/org/object-storage-buckets/{bucket_id} \
--header 'Authorization: Bearer <token>'{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Cluster not found"
}Object Storage Buckets
Delete an object storage bucket
Bearer PAT authentication; RBAC permission credentials.delete. An ordinary delete forgets the bucket and drops the keys Ankra holds for it, leaving the bucket and its objects on the provider. destroy_provider_resources=true also empties and deletes the bucket and removes what Ankra minted for it; a bucket still provisioning is always torn down. A teardown that fails brings the bucket back in error so it can be retried.
DELETE
/
api
/
v1
/
org
/
object-storage-buckets
/
{bucket_id}
Delete an object storage bucket
import requests
url = "https://platform.ankra.app/api/v1/org/object-storage-buckets/{bucket_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/object-storage-buckets/{bucket_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://platform.ankra.app/api/v1/org/object-storage-buckets/{bucket_id} \
--header 'Authorization: Bearer <token>'{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Cluster not found"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
PAT organisation override.
Path Parameters
The bucket's id.
Query Parameters
Only true destroys the bucket, its contents and the provider resources Ankra created for it.
Response
Deleted