File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
docs/modules/ROOT/pages/how-tos/cloudscale Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,22 @@ terraform destroy
132132popd
133133----
134134
135+ . Delete cloudscale server groups
136+ +
137+ TIP: This may not fully clean up server groups for cloudscale clusters which were created earlier than 2025-10-21.
138+ +
139+ [source,bash]
140+ ----
141+ for server_group_uuid in $(curl -H"Authorization: Bearer ${CLOUDSCALE_API_TOKEN}" \
142+ https://api.cloudscale.ch/v1/server-groups | \
143+ jq --arg cluster_id "${CLUSTER_ID}" \
144+ '.[]|select(.name|startswith($cluster_id))|.uuid'); do
145+ curl -H"Authorization: Bearer ${CLOUDSCALE_API_TOKEN}" \
146+ "https://api.cloudscale.ch/v1/server-groups/${server_group_uuid}" \
147+ -XDELETE
148+ done
149+ ----
150+
135151. After all resources are deleted we need to remove the buckets
136152+
137153[source,bash]
You can’t perform that action at this time.
0 commit comments