Hi
Could anyone tell me how to remove template by command line?
Thanks!
Anyone knows? It is very urgent.
Read some documents, only find vmware-cmd can remove snapshots.
Is template the same as snapshot? I guess no.
I am interesting in this question too.
Has someone found solution?
Using powercli
Remove-Template -Template {template name}
Hello Crawfordm,
Thank you for your quick reply! Yes, I saw that documentation, but as I know PowerCLI work only from Windows.
Can I perform this from Linux side?
I have checked all parameters for following commands but haven't found correct one:
# vim-cmd
# esxcli
I can directly remove it from storage side:
# rm -Rf /vmfs/volumes/SATA1/a2011a28dade3a9597b42bc93379758b/
But in this way 'a2011a28dade3a9597b42bc93379758b' template still will be in Inventory.
But in this way 'a2011a28dade3a9597b42bc93379758b' template still will be in Inventory.
This is because the ESXi host itself doesn't know anything about templates... only vCenter does. This info lives in the vCenter DB, so removing it from inventory can only be done using vCenter.
When you mark a VM as a Template the VM is actually unregistered from the ESXi host... Only vCenter then knows it exists.
/Rubeck
