How to delete a Virtual Container Host

I have already discussed creating a Virtual Container Host in this previous post but what do you do if you want to delete one and recreate it or just delete it permanently?

Firstly you should not stop or delete the Virtual Container Host or vApp directly from vCenter. Actions on the Virtual Container Host (VCH) should be carried out by the vic-machine command line utility that was used to create the VCH.

It is a simple enough process to remove the VCH and it involves the command below. Remember the thumbprint that is used is that of the SSL certificate of your vCenter as specified in the –target parameter.

$password = Read-Host 'What is your Password?'

d:\bin\vic\vic-machine-windows.exe delete `
--target "https://dartagnan.home.lab/home.lab" `
--user "eamonn@home.lab" `
--password $password `
--name "VCH01" `

Assuming the command executed successfully you will have an output similar to below.

VCH Successful deletion

There is a caveat to this mind you. if you are using a volume store it won’t delete this by default unless you use the –force parameter.

One comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s