Follow the steps below to delete a cluster using the PKS CLI. Running the
pks delete-cluster command automatically deletes all NSX objects.
On the command line, run the following command to log in:
pks login -a PKS-API -u USERNAME -kWhere:
PKS-APIis the domain name for the PKS API that you entered in Ops Manager >Pivotal Container Service >PKS API >API Hostname (FQDN). For example,
USERNAMEis your user name.
See Logging in to PKS for more information about the
pks delete-cluster CLUSTER-NAMEto delete a cluster. Replace
CLUSTER-NAMEwith the unique name for your cluster. For example:
$ pks delete-cluster my-cluster
Please send any feedback you have to email@example.com.