Managed Kubernetes
Latest
Frequently Asked Questions
Solutions
How Tos
Internal Only
Templates
Powered By

Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Delete a Cluster using the Qbert API
Copy Markdown
Open in ChatGPT
Open in Claude
Problem
A cluster deletion via the API is a useful tool for automation or if you do not have access to UI.
Environment
- Platform9 Managed Kubernetes - All Versions
- Qbert
Procedure
1 - Obtain an authentication token from the Keystone service.
Bash
$ TOKEN=(curl -D - -sH "Content-Type: application/json" https://__DDU__/keystone/v3/auth/tokens -d '{"auth": {"identity": {"methods": ["password"], "password": {"user": {"name": "<__signup_email__>", "domain": {"id": "default"}, "password": "__PASSWORD__"}}}}}' | grep -Fi 'X-Subject-Token' | awk '{print $2}')2 - Obtain the UUID of the Tenant by clicking on your profile on the Top right and navigating to Admin Settings.

3 - Obtain the Cluster UUID by navigating to Infrastructure -> Clusters -> Select Cluster -> Cluster Details -> Unique ID.
4 - The Cluster can be deleted using the following command.
Bash
$ curl --request DELETE --url https://<platform9_url>/qbert/v3/<project_uuid>/clusters/<uuid> --header "X-Auth-Token: $TOKEN"Please ensure all workloads have been moved off the cluster before attempting deletion.
Additional Information
VariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches
Last updated on
Was this page helpful?
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message