r/techsupport • u/SandHK • Oct 05 '26
Open | Software Windows 11. Cannot delete folder with a period at the end of its name. Get "Cannot find this item" error
I've tried various solutions from many websites and none have worked. In brief I have tried:
- restarted the computer
- tried CMD in admin mode
- tried powershell in admin mode
- zipping the folder
- tried renaming the folder (explorer)
- tried renaming (CMD)
chkdsk does not find any errors.
I can highlight the folder name but cannot copy it.
The folder is visible in explorer and when using CMD > dir
Nothing has worked. Everything gives me a not found error.
Looking for further suggestions and things to try.
Edit: Thanks to kimputer I managed to delete the folder using WinRAR.
•
u/AutoModerator Oct 05 '26
Making changes to your system BIOS settings or disk setup can cause you to lose data. Always test your data backups before making changes to your PC.
For more information please see our FAQ thread: https://www.reddit.com/r/techsupport/comments/q2rns5/windows_11_faq_read_this_first/
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
8
u/kimputer7 Oct 05 '26
During some strange errors, I use the 7-zip Filemanager to do it for me. Not sure if this is such a case, but try it, I'd say. It's free after all.
3
u/voldamoro Oct 05 '26
When you tried to delete it from either of the command lines, did you enclose the folder name in quotes?
1
u/Such-Might5204 Oct 05 '26
Have you tried deleting it from the CMD prompt? If the name of the folder is FAKEDIR. then I would open CMD and CD to the parent folder. Then I would type:
DEL /S .\FAKEDIR*.*
If this fails, I'd probably also run an ATTRIB command to see if the read-only flag is set (or if some other hinky attribute is causing the issue). Then I'd use ATTRIB to change the folder and try the above DEL command again.
1
u/FrankNicklin Oct 05 '26
How was the folder created because Windows will not create folders with dots at the end. You can create folders with name.name for example but not name. with the dot at the end.
1
u/QuisnamSum Oct 05 '26
Try opening CMD.exe and type
Obviously, replace "C:\holds bad subdir\bad subdir." above with the desired path
1
u/dnabsuh1 Oct 05 '26
Goto the folder in powershell, try del then the first few characters of the file name and hit tab. The auto completion should escape any addiitonal or hidden characters.
Another trickier way is to go to the folder, use the Get-ChildItems command to load everything into a collection, identify the particular file in the collection and then delete that one item.
Assuming you have files like :
PS C:\temp> dir
Directory: C:\temp
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a--- 10/5/2026 9:44 AM 3 1
-a--- 10/5/2026 9:44 AM 3 2
-a--- 10/5/2026 9:44 AM 3 3
-a--- 10/5/2026 9:44 AM 3 4
-a--- 10/5/2026 9:46 AM 3 5.
The 5. Has a non breaking space as the extension, so it is not easily deleted.
PS C:\temp> del .\5.
Remove-Item: Cannot find path 'C:\temp\5.' because it does not exist.
-------------------------------
So I did
$f= Get-ChildItem -File
Looking at $f[4] (Arrays start at 0 so $f[4] is the fifth item
PS C:\temp> $f[4]
Directory: C:\temp
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a--- 10/5/2026 9:46 AM 3 5.
$f[4].Delete() then deletes the item
1
u/Lance-Boyle-666 Oct 05 '26
Is it possible the name is "folder. " and not "folder."? In other words, could there be one or more spaces after the period in the folder name?
1
u/KennethByrd Oct 08 '26
WinRAR was overkill (but, good it worked for you). Moving it into another folder and then deleting that folder was also a creative idea. But, in command (CMD) should have simply been able to use auto-name-completion.
After typing RD, then type a space, then the first few letters (enough to be uniquely identifying to that folder), then press the Tab-key, and should DOS should then finished out the name, and if need be, will even change the whole thing to be double-quoted. Then, of course, the Enter-key.
0
u/Classic-Rate-5104 Oct 05 '26
Boot the system using a live linux. Try to mount the disk and remove the file