9 Replies Latest reply: May 31, 2013 11:14 PM by ubignor RSS

    Datastore - How to delete/rename a folder???

    deanflyer Novice

       

      Hi,

       

       

      Probably being stupid but using the datastore browser, I can upload files/folders, I can delete files but I cant delete folders (or rename them).

       

       

      Any advice on how to do this.

       

       

      Thanks,

       

       

      Dean

       

       

        • 1. Re: Datastore - How to delete/rename a folder???
          Yattong Master

          Hey Dean,

           

          Using the datastore browser, you cannot modify folders e.g. delete folders, that are not empty.

          You need to delete the files within first before you can delete the folder.

           

          If you need to rename a folder, then create a new folder and move the files from the source folder to your new folder.



          If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points

          ~y

          • 2. Re: Datastore - How to delete/rename a folder???
            mdippa Novice

            I am having the same problem as Dean.  I have deleted all the files out of the folders that I no longer need, but I still cannot deleted the actual folders themselves.  Is there a way to delete these folders?

            • 3. Re: Datastore - How to delete/rename a folder???
              deanflyer Novice

               

              Yes - I still have this problem. I can deleted files no problem, but cannot delete folders.

               

               

              Does anybody have a resolution for this, or has come across this before.

               

               

              • 4. Re: Datastore - How to delete/rename a folder???
                SuryaVMware Expert

                 

                ssh in to the ESX server and delete with the rm -r command for your empty directories and mv command to rename the file.

                 

                 

                 

                 

                 

                -Surya 

                 

                 

                • 5. Re: Datastore - How to delete/rename a folder???
                  flashsd Lurker

                   

                  Sorry for the late reply.  When in the DataStore Browser. Click on the Search Tab. Then search for the folder you would like to delete. Select the Folder, Then click the Delete button.

                   

                   

                  Hope this helps.

                   

                   

                  • 6. Re: Datastore - How to delete/rename a folder???
                    Craig Baltzer Expert

                    The "delete" is only available when you have something selected in the right pane of the datastore browser. If you want to delete a folder, click level above it in the left pane (i.e. click on the "/" folder) so that the folder you want to delete is displayed in the right pane. Then click the folder to be deleted in the right pane and click the red "X" icon in the toolbar (or do a right-click then pick Delete from disk). The folder does not have to be empty.

                     

                    Same deal holds for rename (i.e. you can only "rename" things in the right pane, so you have to go one level "up" in the left pane so the thing you want to rename is displayed in the right pane).

                    • 7. Re: Datastore - How to delete/rename a folder???
                      dtalk Novice

                      Speaking of which, this is a real peeve: a "rename" using the datastore browser appears to actually be a "copy and delete" operation, and takes a horribly long time.  To deploy a VM from a template on a standalone host without the template features of the Virtual Center therefore requires two long copy operations: copy the image, then "rename" the image. 

                       

                      To make matters much worse, there is no progress indication of any sort while this is occuring.  Until the operation completes, the old folder and the new will remain visible, and attempting to manipulate either of them can result in corruption.

                       

                      I haven't spent enough time with the rcli yet to see if it offers a more elegant analog to this operation.

                      • 8. Re: Datastore - How to delete/rename a folder???
                        priceian64 Lurker

                        I've just started out using ESXi and have also found this issue (long time to rename) or indeed copying within the datastore. I also found that the copy did a move rather than a copy?  I've just renamed a VM again and it is now at 10% progress and will probably take a few hours to complete!

                        • 9. Re: Datastore - How to delete/rename a folder???
                          ubignor Lurker

                          really simple

                           

                          in datastore browser in left pane find " \ " (root directory) and select. now just right click on your considered folder which there is in right pane, so you can rename and do some other action. 

                           

                          NOTE: if you want rename one of your folder that you have active VM there, you should first remove your VM from inventory and after renaming find the ".vmx"  file and add it to inventory again.

                           

                          thanks