VMware vSphere

 View Only
  • 1.  Cant delete VM Folders

    Posted Nov 02, 2020 04:45 PM

    I was testing the Horizon application and my company has decided to not move forward with it.  I have removed all the test vms and servers I needed to created the environment with.  I noticed today that I still have the ClonePrep folders listed in the inventory.  They do not have anything inside them and when I go to delete them...nothing happens.

    Can anyone assist me with what I might need to do to delete these empty folders?



  • 2.  RE: Cant delete VM Folders

    Broadcom Employee
    Posted Nov 02, 2020 04:51 PM

    Hi mmaus​,

    Try connecting to one of the ESXi host UI directly and attempt to delete these folders from datastore.

    If it still has issues, you can SSH to ESXi and delete these folders by running 'rm -rf' command.  For ex: rm -rf  foldername

    Hope that helps



  • 3.  RE: Cant delete VM Folders

    Posted Nov 02, 2020 04:58 PM

    ashilkrishnan
    When I browse the datastore... I dont see these folders to delete.

    a.p.
    The instructions for the cleanup utility say I have to connect to the connection server, but the connection server has already been delete.



  • 4.  RE: Cant delete VM Folders

    Posted Nov 02, 2020 05:18 PM

    ..., but the connection server has already been delete.

    That's why I mentioned that yo may need to temporarily setup a connection server, to get access to the required utilities.

    I'm currently not aware of a supported way manually to unprotect the folders from within the vCenter Server database itself.

    André



  • 5.  RE: Cant delete VM Folders

    Posted Nov 02, 2020 05:21 PM

    Im sorry...skimmed through the response too quickly...its been a monday over here.

    Thanks

    ***UPDATE:
    I created a new VM, installed Horizon on it.  I did not have to go into the portal and reconfigure all the connections.  I ran the icunprotect.cmd with the -includeFolders paramter.  After it logged in...it spit out some text saying the folders were unprotected and then disconnected itself.  I then went into the vCenter and was able to delete the folders.

    Thanks for the help.



  • 6.  RE: Cant delete VM Folders
    Best Answer

    Posted Nov 02, 2020 04:57 PM

    The folders are protected by default. Take a look at Instant-Clone Maintenance Utilities for how to unprotect, and delete them. This may require to temporarily setup a connection server, if you have already deleted everything.


    André