VMware Cloud Community
venkatesh710
Enthusiast
Enthusiast

Delete VM from Data Store

Hi All

          I am working in ESXi 4.1. Can you provide commands to delete the VM from a ESXi ?I tried some commands , it is deleting the VM but it s not removing from inventory.

-venkat

Tags (4)
0 Kudos
5 Replies
a_p_
Leadership
Leadership

What exactly are you looking for? Commands on the Command line, vCLI, PowerCLI?

To delete a VM, you usually right click a VM in the inventory (vSphere Client) and select "Delete from disk" when asked.

André

0 Kudos
venkatesh710
Enthusiast
Enthusiast

HI André

              I am looking for command Line

-venkat

0 Kudos
john23
Commander
Commander

delete usign

rm -rf /vmfs/volumes/<datastore name>/<vmname>/*

Thanks -A Read my blogs: www.openwriteup.com
0 Kudos
athlon_crazy
Virtuoso
Virtuoso

$vim-cmd vmsvc/getallvms

$vim-cmd vmsvc/unregister vmid

http://www.no-x.org
0 Kudos
venkatesh710
Enthusiast
Enthusiast

Thanks very much,one more clarification;

I am using one datastore namely linuxds, after removing the datatore i am trying to add the datastore from the same lun. now the datastore name will be linuxds(1). I tried to rename , but it is failed. any idea ?

-venkat

0 Kudos