Delete node group
import requests
url = "https://platform.ankra.app/api/v1/clusters/scaleway/{cluster_id}/node-groups/{group_name}"
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/clusters/scaleway/{cluster_id}/node-groups/{group_name}', 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/clusters/scaleway/{cluster_id}/node-groups/{group_name} \
--header 'Authorization: Bearer <token>'{
"deleted": 123,
"group_name": "<string>"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Cluster not found"
}Scaleway Clusters
Delete node group
Bearer PAT authentication; RBAC permission clusters.delete. PAT mutations support wait=false where implemented; browser mutations require CSRF.
DELETE
/
api
/
v1
/
clusters
/
scaleway
/
{cluster_id}
/
node-groups
/
{group_name}
Delete node group
import requests
url = "https://platform.ankra.app/api/v1/clusters/scaleway/{cluster_id}/node-groups/{group_name}"
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/clusters/scaleway/{cluster_id}/node-groups/{group_name}', 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/clusters/scaleway/{cluster_id}/node-groups/{group_name} \
--header 'Authorization: Bearer <token>'{
"deleted": 123,
"group_name": "<string>"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"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.
Query Parameters
Take every worker of the group down on a cluster teardown's drain, all at once, without honouring PodDisruptionBudgets, and drop the group's settings with the request. Off by default: the workers are drained one at a time through their budgets, a worker whose drain is refused is kept together with its node group and the group's settings, and the operation fails naming what refused it; the settings go when the group's last worker has.