Return to site

Can t delete folders in windows 10

broken image
broken image
broken image

Some applications would see the folders (Explorer primarily) while others (like the Windows Command Prompt) don't. The problem is that Explorer can see the files, but can't delete them.

broken image

Windows apparently does not like folders (or files) with trailing spaces. It's an old legacy application and the field input defaults to the extra spaces that weren't trimmed off before sending to the server resulting in the server happily creating folders with spaces. I ran into a nasty folder naming issue recently where I was unable to delete a number of folders on my server.Īfter some digging I figured out that the folders were created by the FTP server and a client application that was uploading files via FTP, but failed to trim trailing spaces of input on the publish folder.