Can't remove a folder - “Element not found”












0















Got a bit of a problem on my laptop (Windows 8.1); I recently deleted all music that I had stored under C:DokumenteMusik ("Dokumente" meaning "documents" in German). Within this directory, I had a couple of subfolders for my music; I wanted to delete the entire "Dokumente" folder.
However, after deleting it, the folder remained along with but one subfolder (D:DokumenteMusikAmazonGiles Lamb ...), which is empty. When I try to delete the subfolder or the "Dokumente" folder, it just says "Element not found". Restarting the computer did not help.



It's not really a problem, however it's annoying, any idea on how to fix this?



Thanks in advance!










share|improve this question



























    0















    Got a bit of a problem on my laptop (Windows 8.1); I recently deleted all music that I had stored under C:DokumenteMusik ("Dokumente" meaning "documents" in German). Within this directory, I had a couple of subfolders for my music; I wanted to delete the entire "Dokumente" folder.
    However, after deleting it, the folder remained along with but one subfolder (D:DokumenteMusikAmazonGiles Lamb ...), which is empty. When I try to delete the subfolder or the "Dokumente" folder, it just says "Element not found". Restarting the computer did not help.



    It's not really a problem, however it's annoying, any idea on how to fix this?



    Thanks in advance!










    share|improve this question

























      0












      0








      0








      Got a bit of a problem on my laptop (Windows 8.1); I recently deleted all music that I had stored under C:DokumenteMusik ("Dokumente" meaning "documents" in German). Within this directory, I had a couple of subfolders for my music; I wanted to delete the entire "Dokumente" folder.
      However, after deleting it, the folder remained along with but one subfolder (D:DokumenteMusikAmazonGiles Lamb ...), which is empty. When I try to delete the subfolder or the "Dokumente" folder, it just says "Element not found". Restarting the computer did not help.



      It's not really a problem, however it's annoying, any idea on how to fix this?



      Thanks in advance!










      share|improve this question














      Got a bit of a problem on my laptop (Windows 8.1); I recently deleted all music that I had stored under C:DokumenteMusik ("Dokumente" meaning "documents" in German). Within this directory, I had a couple of subfolders for my music; I wanted to delete the entire "Dokumente" folder.
      However, after deleting it, the folder remained along with but one subfolder (D:DokumenteMusikAmazonGiles Lamb ...), which is empty. When I try to delete the subfolder or the "Dokumente" folder, it just says "Element not found". Restarting the computer did not help.



      It's not really a problem, however it's annoying, any idea on how to fix this?



      Thanks in advance!







      windows-8.1 windows-explorer






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Aug 2 '14 at 14:46









      MoritzLostMoritzLost

      3571515




      3571515






















          3 Answers
          3






          active

          oldest

          votes


















          0














          You can try the method I got from a site.




          Deleting the windows.old folder manually



          1) Open an elevated command prompt



          Click start
          Type: cmd
          right-click it under programs
          click Run As Administrator



          2) Take ownership



          Change the directory to the "Giles Lamb" folder (e.g. cd d:Giles Lamb)
          Type: takeown /F . /A /R /D Y > NUL



          3) grant yourself permission



          Type: icacls . /grant:r Administrators:(F) /T /L /Q



          4) Delete everything



          Make sure you close any explorer or command windows that are looking at or inside the Giles Lamb folder (except for the command window you are using). If you don't, you will receive an error while performing this step.



          Type: cd ..

          Type: rmdir /S /Q windows.old







          share|improve this answer































            0














            Simple,



            Using a nifty third party utility:




            1. download Unlocker (this tool helps delete any folder/file by terminating the existing handles to the target)


            2. open explorer (Win+E) and navigate to D:DokumenteMusik


            3. right click on Amazon folder and click Unlocker


            4. select delete and click OK (terminate existing handles --if any)



            Using manual method:




            1. open Command Prompt (elevated) (Start > type cmd > right click and select run as Administrator)


            2. close any unsaved work


            3. type the following commands



            a) taskkill -im explorer.exe /f



            b) cd < enter the path of the folder you want to delete here > (ex: "cd D:DokumenteMusik")



            c) rd /s /q < folder name > (ex: rd /s /q "Amazon")



            (Note: be careful while inputting the directory name)



            Done. this should probably do it, the reason being.. all the handles from the explorer are possibly terminated (however, the handles from programs are not terminated).



            Drop by for further assistance.






            share|improve this answer































              0














              I had this problem in linux a few times and the solution was to use rsync , so, I though maybe robocopy might do it too! This worked for me to be able to delete the contents of the $windows.~bt folder that upgrades in Windows 10 make.



              Open an elevated command prompt



              make a blank folder to "copy" eg:



              c:
              cd
              mkdir blankfolder


              cd to the directory you can't delete, eg:



              cd $widnows.~bt


              Run icacls * /T /Q /C /RESET



              Run takeown /R /F *



              Run robocopy c:blankfolder c:$windows.~bt /mir



              The mirror option tells robocopy to mirror c:blankfolder to $windows.~bt therefore deleting the files you don't want.



              Usually you are supposed to use the diskcleanup wizard to remove these files, but, the drive that had this folder was in a .wim file, and the OS was not running.






              share|improve this answer

























                Your Answer








                StackExchange.ready(function() {
                var channelOptions = {
                tags: "".split(" "),
                id: "3"
                };
                initTagRenderer("".split(" "), "".split(" "), channelOptions);

                StackExchange.using("externalEditor", function() {
                // Have to fire editor after snippets, if snippets enabled
                if (StackExchange.settings.snippets.snippetsEnabled) {
                StackExchange.using("snippets", function() {
                createEditor();
                });
                }
                else {
                createEditor();
                }
                });

                function createEditor() {
                StackExchange.prepareEditor({
                heartbeatType: 'answer',
                autoActivateHeartbeat: false,
                convertImagesToLinks: true,
                noModals: true,
                showLowRepImageUploadWarning: true,
                reputationToPostImages: 10,
                bindNavPrevention: true,
                postfix: "",
                imageUploader: {
                brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                allowUrls: true
                },
                onDemand: true,
                discardSelector: ".discard-answer"
                ,immediatelyShowMarkdownHelp:true
                });


                }
                });














                draft saved

                draft discarded


















                StackExchange.ready(
                function () {
                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f791548%2fcant-remove-a-folder-element-not-found%23new-answer', 'question_page');
                }
                );

                Post as a guest















                Required, but never shown

























                3 Answers
                3






                active

                oldest

                votes








                3 Answers
                3






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes









                0














                You can try the method I got from a site.




                Deleting the windows.old folder manually



                1) Open an elevated command prompt



                Click start
                Type: cmd
                right-click it under programs
                click Run As Administrator



                2) Take ownership



                Change the directory to the "Giles Lamb" folder (e.g. cd d:Giles Lamb)
                Type: takeown /F . /A /R /D Y > NUL



                3) grant yourself permission



                Type: icacls . /grant:r Administrators:(F) /T /L /Q



                4) Delete everything



                Make sure you close any explorer or command windows that are looking at or inside the Giles Lamb folder (except for the command window you are using). If you don't, you will receive an error while performing this step.



                Type: cd ..

                Type: rmdir /S /Q windows.old







                share|improve this answer




























                  0














                  You can try the method I got from a site.




                  Deleting the windows.old folder manually



                  1) Open an elevated command prompt



                  Click start
                  Type: cmd
                  right-click it under programs
                  click Run As Administrator



                  2) Take ownership



                  Change the directory to the "Giles Lamb" folder (e.g. cd d:Giles Lamb)
                  Type: takeown /F . /A /R /D Y > NUL



                  3) grant yourself permission



                  Type: icacls . /grant:r Administrators:(F) /T /L /Q



                  4) Delete everything



                  Make sure you close any explorer or command windows that are looking at or inside the Giles Lamb folder (except for the command window you are using). If you don't, you will receive an error while performing this step.



                  Type: cd ..

                  Type: rmdir /S /Q windows.old







                  share|improve this answer


























                    0












                    0








                    0







                    You can try the method I got from a site.




                    Deleting the windows.old folder manually



                    1) Open an elevated command prompt



                    Click start
                    Type: cmd
                    right-click it under programs
                    click Run As Administrator



                    2) Take ownership



                    Change the directory to the "Giles Lamb" folder (e.g. cd d:Giles Lamb)
                    Type: takeown /F . /A /R /D Y > NUL



                    3) grant yourself permission



                    Type: icacls . /grant:r Administrators:(F) /T /L /Q



                    4) Delete everything



                    Make sure you close any explorer or command windows that are looking at or inside the Giles Lamb folder (except for the command window you are using). If you don't, you will receive an error while performing this step.



                    Type: cd ..

                    Type: rmdir /S /Q windows.old







                    share|improve this answer













                    You can try the method I got from a site.




                    Deleting the windows.old folder manually



                    1) Open an elevated command prompt



                    Click start
                    Type: cmd
                    right-click it under programs
                    click Run As Administrator



                    2) Take ownership



                    Change the directory to the "Giles Lamb" folder (e.g. cd d:Giles Lamb)
                    Type: takeown /F . /A /R /D Y > NUL



                    3) grant yourself permission



                    Type: icacls . /grant:r Administrators:(F) /T /L /Q



                    4) Delete everything



                    Make sure you close any explorer or command windows that are looking at or inside the Giles Lamb folder (except for the command window you are using). If you don't, you will receive an error while performing this step.



                    Type: cd ..

                    Type: rmdir /S /Q windows.old








                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Aug 2 '14 at 15:24









                    MurtazaMurtaza

                    62111




                    62111

























                        0














                        Simple,



                        Using a nifty third party utility:




                        1. download Unlocker (this tool helps delete any folder/file by terminating the existing handles to the target)


                        2. open explorer (Win+E) and navigate to D:DokumenteMusik


                        3. right click on Amazon folder and click Unlocker


                        4. select delete and click OK (terminate existing handles --if any)



                        Using manual method:




                        1. open Command Prompt (elevated) (Start > type cmd > right click and select run as Administrator)


                        2. close any unsaved work


                        3. type the following commands



                        a) taskkill -im explorer.exe /f



                        b) cd < enter the path of the folder you want to delete here > (ex: "cd D:DokumenteMusik")



                        c) rd /s /q < folder name > (ex: rd /s /q "Amazon")



                        (Note: be careful while inputting the directory name)



                        Done. this should probably do it, the reason being.. all the handles from the explorer are possibly terminated (however, the handles from programs are not terminated).



                        Drop by for further assistance.






                        share|improve this answer




























                          0














                          Simple,



                          Using a nifty third party utility:




                          1. download Unlocker (this tool helps delete any folder/file by terminating the existing handles to the target)


                          2. open explorer (Win+E) and navigate to D:DokumenteMusik


                          3. right click on Amazon folder and click Unlocker


                          4. select delete and click OK (terminate existing handles --if any)



                          Using manual method:




                          1. open Command Prompt (elevated) (Start > type cmd > right click and select run as Administrator)


                          2. close any unsaved work


                          3. type the following commands



                          a) taskkill -im explorer.exe /f



                          b) cd < enter the path of the folder you want to delete here > (ex: "cd D:DokumenteMusik")



                          c) rd /s /q < folder name > (ex: rd /s /q "Amazon")



                          (Note: be careful while inputting the directory name)



                          Done. this should probably do it, the reason being.. all the handles from the explorer are possibly terminated (however, the handles from programs are not terminated).



                          Drop by for further assistance.






                          share|improve this answer


























                            0












                            0








                            0







                            Simple,



                            Using a nifty third party utility:




                            1. download Unlocker (this tool helps delete any folder/file by terminating the existing handles to the target)


                            2. open explorer (Win+E) and navigate to D:DokumenteMusik


                            3. right click on Amazon folder and click Unlocker


                            4. select delete and click OK (terminate existing handles --if any)



                            Using manual method:




                            1. open Command Prompt (elevated) (Start > type cmd > right click and select run as Administrator)


                            2. close any unsaved work


                            3. type the following commands



                            a) taskkill -im explorer.exe /f



                            b) cd < enter the path of the folder you want to delete here > (ex: "cd D:DokumenteMusik")



                            c) rd /s /q < folder name > (ex: rd /s /q "Amazon")



                            (Note: be careful while inputting the directory name)



                            Done. this should probably do it, the reason being.. all the handles from the explorer are possibly terminated (however, the handles from programs are not terminated).



                            Drop by for further assistance.






                            share|improve this answer













                            Simple,



                            Using a nifty third party utility:




                            1. download Unlocker (this tool helps delete any folder/file by terminating the existing handles to the target)


                            2. open explorer (Win+E) and navigate to D:DokumenteMusik


                            3. right click on Amazon folder and click Unlocker


                            4. select delete and click OK (terminate existing handles --if any)



                            Using manual method:




                            1. open Command Prompt (elevated) (Start > type cmd > right click and select run as Administrator)


                            2. close any unsaved work


                            3. type the following commands



                            a) taskkill -im explorer.exe /f



                            b) cd < enter the path of the folder you want to delete here > (ex: "cd D:DokumenteMusik")



                            c) rd /s /q < folder name > (ex: rd /s /q "Amazon")



                            (Note: be careful while inputting the directory name)



                            Done. this should probably do it, the reason being.. all the handles from the explorer are possibly terminated (however, the handles from programs are not terminated).



                            Drop by for further assistance.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered May 4 '16 at 14:43









                            cyfrostcyfrost

                            134




                            134























                                0














                                I had this problem in linux a few times and the solution was to use rsync , so, I though maybe robocopy might do it too! This worked for me to be able to delete the contents of the $windows.~bt folder that upgrades in Windows 10 make.



                                Open an elevated command prompt



                                make a blank folder to "copy" eg:



                                c:
                                cd
                                mkdir blankfolder


                                cd to the directory you can't delete, eg:



                                cd $widnows.~bt


                                Run icacls * /T /Q /C /RESET



                                Run takeown /R /F *



                                Run robocopy c:blankfolder c:$windows.~bt /mir



                                The mirror option tells robocopy to mirror c:blankfolder to $windows.~bt therefore deleting the files you don't want.



                                Usually you are supposed to use the diskcleanup wizard to remove these files, but, the drive that had this folder was in a .wim file, and the OS was not running.






                                share|improve this answer






























                                  0














                                  I had this problem in linux a few times and the solution was to use rsync , so, I though maybe robocopy might do it too! This worked for me to be able to delete the contents of the $windows.~bt folder that upgrades in Windows 10 make.



                                  Open an elevated command prompt



                                  make a blank folder to "copy" eg:



                                  c:
                                  cd
                                  mkdir blankfolder


                                  cd to the directory you can't delete, eg:



                                  cd $widnows.~bt


                                  Run icacls * /T /Q /C /RESET



                                  Run takeown /R /F *



                                  Run robocopy c:blankfolder c:$windows.~bt /mir



                                  The mirror option tells robocopy to mirror c:blankfolder to $windows.~bt therefore deleting the files you don't want.



                                  Usually you are supposed to use the diskcleanup wizard to remove these files, but, the drive that had this folder was in a .wim file, and the OS was not running.






                                  share|improve this answer




























                                    0












                                    0








                                    0







                                    I had this problem in linux a few times and the solution was to use rsync , so, I though maybe robocopy might do it too! This worked for me to be able to delete the contents of the $windows.~bt folder that upgrades in Windows 10 make.



                                    Open an elevated command prompt



                                    make a blank folder to "copy" eg:



                                    c:
                                    cd
                                    mkdir blankfolder


                                    cd to the directory you can't delete, eg:



                                    cd $widnows.~bt


                                    Run icacls * /T /Q /C /RESET



                                    Run takeown /R /F *



                                    Run robocopy c:blankfolder c:$windows.~bt /mir



                                    The mirror option tells robocopy to mirror c:blankfolder to $windows.~bt therefore deleting the files you don't want.



                                    Usually you are supposed to use the diskcleanup wizard to remove these files, but, the drive that had this folder was in a .wim file, and the OS was not running.






                                    share|improve this answer















                                    I had this problem in linux a few times and the solution was to use rsync , so, I though maybe robocopy might do it too! This worked for me to be able to delete the contents of the $windows.~bt folder that upgrades in Windows 10 make.



                                    Open an elevated command prompt



                                    make a blank folder to "copy" eg:



                                    c:
                                    cd
                                    mkdir blankfolder


                                    cd to the directory you can't delete, eg:



                                    cd $widnows.~bt


                                    Run icacls * /T /Q /C /RESET



                                    Run takeown /R /F *



                                    Run robocopy c:blankfolder c:$windows.~bt /mir



                                    The mirror option tells robocopy to mirror c:blankfolder to $windows.~bt therefore deleting the files you don't want.



                                    Usually you are supposed to use the diskcleanup wizard to remove these files, but, the drive that had this folder was in a .wim file, and the OS was not running.







                                    share|improve this answer














                                    share|improve this answer



                                    share|improve this answer








                                    edited May 5 '16 at 14:00









                                    Burgi

                                    3,88792543




                                    3,88792543










                                    answered May 4 '16 at 14:21









                                    Chris.AdminChris.Admin

                                    1




                                    1






























                                        draft saved

                                        draft discarded




















































                                        Thanks for contributing an answer to Super User!


                                        • Please be sure to answer the question. Provide details and share your research!

                                        But avoid



                                        • Asking for help, clarification, or responding to other answers.

                                        • Making statements based on opinion; back them up with references or personal experience.


                                        To learn more, see our tips on writing great answers.




                                        draft saved


                                        draft discarded














                                        StackExchange.ready(
                                        function () {
                                        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f791548%2fcant-remove-a-folder-element-not-found%23new-answer', 'question_page');
                                        }
                                        );

                                        Post as a guest















                                        Required, but never shown





















































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown

































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown







                                        Popular posts from this blog

                                        flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                                        Mangá

                                         ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕