Tanzu Mission Control – Delete a provisioned cluster
Tags: vmware, kubernetes, cluster, delete
Published: 2021-04-22 14:05:32

---
title: Tanzu Mission Control – Delete a provisioned cluster
published: true
date: 2021-04-14 22:30:43 UTC
tags: VMware,Kubernetes,Cluster,delete
canonical_url: https://veducate.co.uk/tanzu-mission-control-delete-provisioned-cluster/?utm_source=rss&utm_medium=rss&utm_campaign=tanzu-mission-control-delete-provisioned-cluster
---

In this blog post we are going to cover off how to delete a Tanzu Kubernetes Grid cluster that has been provisioned by Tanzu Mission Control. We will cover the following areas:

Below are the other blog posts in the series.

```
Tanzu Mission Control 
- [Getting Started Tanzu Mission Control](https://vEducate.co.uk/vmware-tanzu-mission-control-getting-started) 
- [Cluster Inspections](https://vEducate.co.uk/vmware-tanzu-mission-control-cluster-inspections) 
- [Workspaces and Policies](https://veducate.co.uk/vmware-tanzu-mission-control-workspaces-and-policies/) 
- [Data Protection](https://veducate.co.uk/?p=3429&preview=true)
- [Deploying TKG clusters to AWS](https://veducate.co.uk/tmc-deploy-tkg-aws/)
- [Upgrading Kubernetes for a provisioned cluster](https://veducate.co.uk/?p=3706&preview=true)
```

We are going to use the cluster I created in my [last blog post](https://veducate.co.uk/tmc-deploy-tkg-aws/).

Below are my EC2 instances that make up my TMC provisioned cluster, here I have filtered my view using the field “tmc.cloud.vmware.com/cluster” + cluster name.

[![Tanzu Mission Control - AWS Consoles - Instances - Filtered tmc.cloud.vmware.com](https://i2.wp.com/veducate.co.uk/wp-content/uploads/2021/04/Tanzu-Mission-Control-AWS-Consoles-Instances-Filtered-tmc.cloud_.vmware.com_.jpg?resize=604%2C190&ssl=1)](https://i2.wp.com/veducate.co.uk/wp-content/uploads/2021/04/Tanzu-Mission-Control-AWS-Consoles-Instances-Filtered-tmc.cloud_.vmware.com_.jpg?ssl=1)

###### Deleting a Provisioned cluster in the TMC UI

In the TMC UI, going to the clusters view, you can click the three dots next to the cluster you want to remove and select delete.

[![Tanzu Mission Control - Clusters - Delete cluster](https://i2.wp.com/veducate.co.uk/wp-content/uploads/2021/04/Tanzu-Mission-Control-Clusters-Delete-cluster.jpg?resize=604%2C408&ssl=1)](https://i2.wp.com/veducate.co.uk/wp-content/uploads/2021/04/Tanzu-Mission-Control-Clusters-Delete-cluster.jpg?ssl=1)

Alternatively, within the cluster object view, click actions then delete.

[![Tanzu Mission Control - Cluster Object - Delete cluster](https://i2.wp.com/veducate.co.uk/wp-content/uploads/2021/04/Tanzu-Mission-Control-Cluster-Object-Delete-cluster.jpg?resize=604%2C157&ssl=1)](https://i2.wp.com/veducate.co.uk/wp-content/uploads/2021/04/Tanzu-Mission-Control-Cluster-Object-Delete-cluster.jpg?ssl=1)

Both options will bring up the below confirmation dialog box.

You select one of the following options:

- Delete and remove agent (recommended)
  - Remove from TMC and delete agent extensions
- Manually delete agent extensions
  - A secondary option whereby a manual removal is needed if a cluster delete fails

Enter the name of the cluster you want to delete, to confirm the cluster deletion.

[![Tanzu Mission Control - Cluster Object - Delete cluster - Confirm](https://i1.wp.com/veducate.co.uk/wp-content/uploads/2021/04/Tanzu-Mission-Control-Cluster-Object-Delete-cluster-Confirm.jpg?resize=540%2C535&ssl=1)](https://i1.wp.com/veducate.co.uk/wp-content/uploads/2021/04/Tanzu-Mission-Control-Cluster-Object-Delete-cluster-Confirm.jpg?ssl=1)

In the cluster object view, you will see the message “Your cluster is being deleted”.

[![Tanzu Mission Control - Cluster Object - Delete cluster - Your cluster is being deleted](https://i2.wp.com/veducate.co.uk/wp-content/uploads/2021/04/Tanzu-Mission-Control-Cluster-Object-Delete-cluster-Your-cluster-is-being-deleted.jpg?resize=604%2C238&ssl=1)](https://i2.wp.com/veducate.co.uk/wp-content/uploads/2021/04/Tanzu-Mission-Control-Cluster-Object-Delete-cluster-Your-cluster-is-being-deleted.jpg?ssl=1)

On the Clusters view, you will see the status for the cluster change to “Deleting”.

[![Tanzu Mission Control - Clusters - Deleting](https://i0.wp.com/veducate.co.uk/wp-content/uploads/2021/04/Tanzu-Mission-Control-Clusters-Deleting.jpg?resize=604%2C53&ssl=1)](https://i0.wp.com/veducate.co.uk/wp-content/uploads/2021/04/Tanzu-Mission-Control-Clusters-Deleting.jpg?ssl=1)

Going back to the AWS console, we can see the instances are shut down, and then terminated.

[![Tanzu Mission Control - Deleting cluster - AWS EC2 Console](https://i0.wp.com/veducate.co.uk/wp-content/uploads/2021/04/Tanzu-Mission-Control-Deleting-cluster-AWS-EC2-Console.jpg?resize=604%2C119&ssl=1)](https://i0.wp.com/veducate.co.uk/wp-content/uploads/2021/04/Tanzu-Mission-Control-Deleting-cluster-AWS-EC2-Console.jpg?ssl=1)

###### Will deleting my my provisioned cluster remove the EBS volumes mapped to my Persistent Volumes?

Below is a view of my Persistent Volume in my TKG cluster in the terminal window, showing the mapping back to the Elastic Block Store Volume which is created by the In-tree provisioner for AWS.

[![Tanzu Mission Control - PVC map to Elastic Block Store Volume](https://i1.wp.com/veducate.co.uk/wp-content/uploads/2021/04/Tanzu-Mission-Control-PVC-map-to-Elastic-Block-Store-Volume.jpg?resize=604%2C301&ssl=1)](https://i1.wp.com/veducate.co.uk/wp-content/uploads/2021/04/Tanzu-Mission-Control-PVC-map-to-Elastic-Block-Store-Volume.jpg?ssl=1)

When a cluster is deleted, the volumes are unlinked from the EC2 instances they are linked to, so their status becomes available, meaning they can be attached to another instance if needed.

Deleting a AWS provisioned TKG cluster does not remove the underlying storage objects used by the persistent volumes. This is because the objects are created within the cluster and not by TMC.

If you no longer need the volumes, you can manually remove them.

[![Tanzu Mission Control - Elastic Block Store Volume - Available](https://i1.wp.com/veducate.co.uk/wp-content/uploads/2021/04/Tanzu-Mission-Control-Elastic-Block-Store-Volume-Available.jpg?resize=604%2C43&ssl=1)](https://i1.wp.com/veducate.co.uk/wp-content/uploads/2021/04/Tanzu-Mission-Control-Elastic-Block-Store-Volume-Available.jpg?ssl=1)

**Wrap-up and Resources**

In this walk-through we used Tanzu Mission Control to delete a provisioned Tanzu Kubernetes Grid cluster which was running in AWS. All the steps provided in this blog post can be replicated using the TMC CLI as well.

As a reminder, to take real advantage of TMC I recommend you read the follow posts:

```
Tanzu Mission Control 

- [Getting Started Tanzu Mission Control](https://vEducate.co.uk/vmware-tanzu-mission-control-getting-started) 
- [Cluster Inspections](https://vEducate.co.uk/vmware-tanzu-mission-control-cluster-inspections) 
- [Workspaces and Policies](https://veducate.co.uk/vmware-tanzu-mission-control-workspaces-and-policies/)
- [Data Protection](https://veducate.co.uk/?p=3429&preview=true)
- [Deploying TKG clusters to AWS](https://veducate.co.uk/tmc-deploy-tkg-aws/)
- [Upgrading Kubernetes for a provisioned cluster](https://veducate.co.uk/?p=3706&preview=true)
```

You can get hands on experience of Tanzu Mission Control yourself over on the VMware Hands-on-Lab website, which is always free!

- [HOL-2032-01-CNA – VMware Tanzu Mission Control](https://labs.hol.vmware.com/HOL/catalogs/lab/6965)

Regards

[Follow @Saintdle](https://twitter.com/saintdle)<script async="" src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>

[Dean Lewis](https://uk.linkedin.com/in/saintdle?trk=profile-badge)

The post [Tanzu Mission Control – Delete a provisioned cluster](https://veducate.co.uk/tanzu-mission-control-delete-provisioned-cluster/) appeared first on [vEducate.co.uk](https://veducate.co.uk).