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"
}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 when Ankra recorded creating it and removes what Ankra minted for it; a bucket still provisioning is always torn down. A bucket that already existed under the requested name is refused at provisioning and never emptied or deleted, and a bucket provisioned before Ankra recorded its creations is kept as well. A teardown that fails brings the bucket back in error so it can be retried.
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 Ankra created, its contents and the provider resources Ankra created for it.
Response
Deleted