General Clear File Explorer History in Windows 11


  • Staff
Recent_items_banner.png

Clearing your File Explorer history deletes the information Windows saved about the files and folders you use as well as what you've typed in the address bar and Run dialog.

File Explorer history consists of:
  • Recent items in the File Explorer jump list.
  • Quick access folders in File Explorer Home, except default pinned folders.
  • Favorites in File Explorer Home.
  • Recent files in File Explorer Home.
  • File Explorer address bar typed history.
  • Run dialog typed history.
This tutorial will show you how to clear the File Explorer history for your account in Windows 11.


Contents

  • Option One: Clear File Explorer History in Folder Options
  • Option Two: Clear File Explorer History using BAT file


EXAMPLE: History in File Explorer Home

Recent_history_on_File_Explorer_Home.png


EXAMPLE: Recent history in File Explorer jump list

Recent_on_File_Explorer_jump_list.jpg


EXAMPLE: Typed paths history in File Explorer address bar

File_Explorer_address_bar_typed_history.png


EXAMPLE: Typed paths history in Run dialog

Run_typed_history.png





Option One

Clear File Explorer History in Folder Options


This option will not clear folders pinned to Quick access in File Explorer home.

This option will not clear Favorites in File Explorer Home.

This option will not clear OneDrive items (if listed) under Recent in File Explorer Home.


1 Open Folder Options.

2 In the General tab, click/tap on the Clear button under Privacy. (see screenshot below)

3 Click/tap on OK to close Folder Options.

Clear_File_Explorer_history_Folder_Options.png





Option Two

Clear File Explorer History using BAT file


This option will completely clear all File Explorer history including what Option One couldn't clear.

Clear_all_history_in_File_Explorer_Home.png


1 Click/tap on the download button below to download the Clear_File_Explorer_history_for_current_user.bat file.


(Contents of BAT file for reference)
Code:
:: Clear history in File Explorer Home
Del /F /Q %APPDATA%\Microsoft\Windows\Recent\*

Del /F /Q %APPDATA%\Microsoft\Windows\Recent\AutomaticDestinations\*

Del /F /Q %APPDATA%\Microsoft\Windows\Recent\CustomDestinations\*


:: Clear typed history in Run dialog
reg query HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\RunMRU
if not ErrorLevel 1 reg delete HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\RunMRU /F

:: Clear typed history in File Explorer address bar
reg query HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\TypedPaths
if not ErrorLevel 1 reg delete HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\TypedPaths /F

2 Save the BAT file to your desktop.

3 Unblock and run the BAT file.

4 You will now see a command prompt quickly flash open and close to run the commands to clear all your File Explorer history.

5 You can now delete the BAT file if you like.


That's it,
Shawn Brink


 

Attachments

  • Recent_items.png
    Recent_items.png
    6.6 KB · Views: 10
  • Clear_File_Explorer_history_for_current_user.bat
    840 bytes · Views: 29
Last edited:
Top Bottom