Empty Folders in Windows

This article

describes a bug in Windows 10 and 11 systems in which folders whose name begins with tw and ends with the extension .tmp might be created in the folder C:\Windows\System32\config\systemprofile\AppData\Local. The folders are empty. I checked my system and found more than 11,000 such folders (now deleted).

The cited article (and similar ones) states that these folders occupy little space and don’t cause a problem. However, doesn’t the mere presence of these folders create overhead? After all, the file system has to keep track of them. Also, how much space do these folders actually occupy? The file system stores the name of the folder, which must take space, especially for 11,000 of them.

A minuscule amount, but yes.

Again, yes, but a minuscule amount, and in the file header indexes not the general disk space. Not noticeable on today’s hard disk sizes.

That said that’s a pretty bad bug to let slip in!

How did you delete them?

I deleted the folders through Windows file explorer: Highlighted them, right-clicked and selected Delete.

Never heard of this before. I checked and I had 1,159 of them.

Same for me: 4,800 junk folders. A bizarre bug.

Only 443 for me. Truly bizarre.

A couple of ways to delete empty folders,

https://windowsreport.com/remove-empty-folders-windows-10/

https://sourceforge.net/projects/rem-empty-dir/

https://www.raymond.cc/blog/easily-removing-empty-directories-from-windows/

A Google will turn up plenty more :+1:

I have 3600, but out of a total of 256,000 folders, it is small. And out of a total of 1,364,000 files tat actually contain stuff, hardly worth worrying about.

852 for me. Deleted but I think Windows 10/11 has more overhead issues than those temp files.

I understand that much but you didn’t highlight 11,000 folders individually, so how did you highlight them?

Do a Left Click on the first folder, then scroll down to the last folder in the list and do a SHIFT+Left Click on that, and you have the whole list highlighted. Then Right Click and choose “Delete”.

ETA: this only works if the folders are ordered alphabetically and are consecutive, as in this case of folders all named tmp_*. Be careful not to highlight any folder or file you don’t want to delete.

I don’t remember exactly how I selected the folders, but EinsteinsHund’s method is probably how I did so.