Can't remove a folder - “Element not found”
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
add a comment |
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
add a comment |
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
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
windows-8.1 windows-explorer
asked Aug 2 '14 at 14:46
MoritzLostMoritzLost
3571515
3571515
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
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
add a comment |
Simple,
Using a nifty third party utility:
download Unlocker (this tool helps delete any folder/file by terminating the existing handles to the target)
open explorer (Win+E) and navigate to
D:DokumenteMusik
right click on
Amazon
folder and clickUnlocker
select
delete
and clickOK
(terminate existing handles --if any)
Using manual method:
open
Command Prompt (elevated)
(Start > typecmd
> right click and selectrun as Administrator
)close any unsaved work
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.
add a comment |
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.
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
add a comment |
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
add a comment |
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
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
answered Aug 2 '14 at 15:24
MurtazaMurtaza
62111
62111
add a comment |
add a comment |
Simple,
Using a nifty third party utility:
download Unlocker (this tool helps delete any folder/file by terminating the existing handles to the target)
open explorer (Win+E) and navigate to
D:DokumenteMusik
right click on
Amazon
folder and clickUnlocker
select
delete
and clickOK
(terminate existing handles --if any)
Using manual method:
open
Command Prompt (elevated)
(Start > typecmd
> right click and selectrun as Administrator
)close any unsaved work
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.
add a comment |
Simple,
Using a nifty third party utility:
download Unlocker (this tool helps delete any folder/file by terminating the existing handles to the target)
open explorer (Win+E) and navigate to
D:DokumenteMusik
right click on
Amazon
folder and clickUnlocker
select
delete
and clickOK
(terminate existing handles --if any)
Using manual method:
open
Command Prompt (elevated)
(Start > typecmd
> right click and selectrun as Administrator
)close any unsaved work
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.
add a comment |
Simple,
Using a nifty third party utility:
download Unlocker (this tool helps delete any folder/file by terminating the existing handles to the target)
open explorer (Win+E) and navigate to
D:DokumenteMusik
right click on
Amazon
folder and clickUnlocker
select
delete
and clickOK
(terminate existing handles --if any)
Using manual method:
open
Command Prompt (elevated)
(Start > typecmd
> right click and selectrun as Administrator
)close any unsaved work
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.
Simple,
Using a nifty third party utility:
download Unlocker (this tool helps delete any folder/file by terminating the existing handles to the target)
open explorer (Win+E) and navigate to
D:DokumenteMusik
right click on
Amazon
folder and clickUnlocker
select
delete
and clickOK
(terminate existing handles --if any)
Using manual method:
open
Command Prompt (elevated)
(Start > typecmd
> right click and selectrun as Administrator
)close any unsaved work
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.
answered May 4 '16 at 14:43
cyfrostcyfrost
134
134
add a comment |
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
edited May 5 '16 at 14:00
Burgi
3,88792543
3,88792543
answered May 4 '16 at 14:21
Chris.AdminChris.Admin
1
1
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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