How to Fix Black Background Behind Folder Icons in Windows 10

The Windows 10 File Explorer can display your files and folders in several different styles like Medium icons, Large icons, Extra large icons, Content, etc. Sometimes, when you set your file or folder icon style to small, medium, or extra large, you might see a black background behind the actual folder icon. This looks pretty ugly, and no matter how may times you refresh, the black background will not go away. If you are facing this issue, here is how to fix the black background behind folder icons in Windows 10 File Explorer.

The fast and easiest way to fix the black background behind the folder icons is to use the built-in Disk Cleanup utility. Search for “Disk Cleanup” in the Start menu and click on it to open the tool.

black-background-file-explorer-search-diskcleanup

The above action will start the Disk Cleanup wizard. Here, select “C” drive from the drop-down menu and click on the “OK” button.

black-background-file-explorer-select-drive-click-ok

The above action will start the scanning process. Once the scan has been completed, scroll down and select the “Thumbnails” checkbox under the “File to Delete” section and click on the “OK” button.

black-background-file-explorer-select-thumbnails

As soon as you click on the button, you will receive a confirmation window. Click on the “Delete Files” button to continue.

black-background-file-explorer-click-delete-files

Restart your system, and you will no longer see the black background behind the folder icons in the File Explorer.

Besides using the Disk Cleanup tool, you can also fix the issue by manually deleting the thumbnail cache files. To start, press the keyboard shortcut “Win + E” to open the File Explorer.

After opening the File Explorer, select the checkbox “Hidden Items” in the View tab. When you select it, File Explorer will show all the hidden files and folders.

black-background-file-explorer-select-hidden-items

Now navigate to the following location. Don’t forget to replace “<username>” with your actual Windows username.

C:\Users\<username>\AppData\Local

Once you are here, scroll down the folder, find “IconCache.db” and press the Delete key on your keyboard.

black-background-file-explorer-delete-iconcache-db-file

After deleting the file, navigate to the following location, select all the files using the keyboard shortcut “Ctrl + A” and press the Delete key to delete them. Again, don’t forget to replace “<username>” with your actual Windows username.

C:\Users\<username>\AppData\Local\Microsoft\Windows\Explorer

You might receive an error message telling you that the files are in use and cannot be deleted. Simply select the checkbox “Do this for all current items” and click on the “Try Again” button.

black-background-file-explorer-click-try-again

You will receive the same error message again. Click on the “Cancel” button to close the window. After closing the window, you will find a new folder with the name “ThumbCacheToDelete” or “IconCacheToDelete.” This folder ensures that the files will be automatically deleted when you restart your system.

black-background-file-explorer-thumbcache-folder

If you want to, you can achieve the same thing by creating a simple bat file that deletes all the thumbnail cache files with one double-click. To create a bat file, right-click on your desktop, and then select the option “New > Text Document.”

black-background-file-explorer-select-text-document

Name the file as you want, but make sure you change the file extension from .txt to .bat. In my case, I renamed my file to “ClearThumbCache.bat.”

black-background-file-explorer-rename-file

Now, right-click on the bat file and select the option “Edit.”

black-background-file-explorer-select-edit

The above action will open the file in Notepad. Copy and paste the below commands in the file, save, and close.

echo.
taskkill /f /im explorer.exe
timeout 2 /nobreak>nul
echo.
DEL /F /S /Q /A %LocalAppData%\IconCache.db
DEL /F /S /Q /A %LocalAppData%\Microsoft\Windows\Explorer\iconcache_*.db
DEL /F /S /Q /A %LocalAppData%\Microsoft\Windows\Explorer\thumbcache_*.db
 
timeout 2 /nobreak>nul
start explorer.exe

After closing the file, save all your work and double-click on the newly created .bat file to fix the black background behind the folder icons issue. When you execute the file, Windows Explorer will stop temporarily and start again. So don’t worry if your screen goes blank for a second or two.

Do comment below sharing your thoughts and experiences about using the above methods to fix the issue.

Leave a Reply

Yeah! You've decided to leave a comment. That's fantastic! Check out our comment policy here. Let's have a personal and meaningful conversation.