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 "email@example.com" ` --password $password ` --name "VCH01" ` --thumbprint="00:6C:D2:B1:A2:0E:53:BD:26:91:DA:08:7F:ED:91:3C:1E:E5:2A:23"
Assuming the command executed successfully you will have an output similar to below.
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.