Delete the organisation
import requests
url = "https://platform.ankra.app/api/v1/org/organisation/{organisation_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/organisation/{organisation_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/organisation/{organisation_id} \
--header 'Authorization: Bearer <token>'{
"success": true,
"message": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Organisation
Delete the organisation
Deletes the organisation. Only an owner may, and only once it has no active clusters, no other members and no open invoice; the open billing period is closed out first. Requires organisation.delete, which only owners hold, checked against the token’s scopes and then against the member’s role whatever the authorisation rollout state; the path must name the organisation the token acts in (its own, or the X-Ankra-Organisation-Id override), a token pinned to a project is refused, since the setting has no per-project form, and a service-account token is refused.
DELETE
/
api
/
v1
/
org
/
organisation
/
{organisation_id}
Delete the organisation
import requests
url = "https://platform.ankra.app/api/v1/org/organisation/{organisation_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/organisation/{organisation_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/organisation/{organisation_id} \
--header 'Authorization: Bearer <token>'{
"success": true,
"message": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}