Skip to content

Delete Kubernetes Cluster

DELETE
/api/v1/kubernetes/service/{service_id}
curl --request DELETE \
--url 'https://api.e2enetworks.com/myaccount/api/v1/kubernetes/service/{service_id}?project_id=<PROJECT_ID>&apikey=<API_KEY>&location=<LOCATION>' \
--header 'Authorization: Bearer <API_TOKEN>'

Permanently deletes a cluster. The master node and all worker node pools are terminated and the cluster is removed - the action cannot be undone. Set is_delete_backups=true to also delete the cluster’s backups; leave it false to retain them. Use the cluster service_id returned by List.

service_id
required
integer

The service_id of the cluster to delete, as returned by List.

Example

12345
is_delete_backups
boolean

When true, the cluster’s backups are also deleted along with the cluster.

Example

false
project_id
required
integer

Identifier of the project to scope the request to. Required integer project ID.

Example

<PROJECT_ID>
apikey
required
string

API key used to authenticate the delete request.

Example

<API_KEY>
location
required
string

Region of the cluster being deleted.

Example

<LOCATION>

Successful response

Media typeapplication/json
object
code
integer
data
object
errors
object
message
string

Example

{
"code": 200,
"message": "Kubernetes cluster deleted successfully"
}