General Clear File Explorer History in Windows 11


  • Staff
Recent_items_banner.png

This tutorial will show you how to clear the Run (Win+R) and File Explorer (Win+E) typed, recent items, and frequent places history for your account in Windows 11.

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.

Contents

  • Option One: Only Clear Run and File Explorer Address Bar History
  • Option Two: Clear File Explorer History in Folder Options
  • Option Three: 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

Only Clear Run and File Explorer Address Bar History


Typed paths history for the Run and File Explorer address bar are saved to the registry keys below for your account.

(File Explorer)
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\TypedPaths

(Run)
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU


1 Open File Explorer (Win+E).

2 Right click in the address bar of File Explorer. (see screenshot below)

3 Click/tap on Delete history.

Clear_File_Explorer_address_bar_history.png





Option Two

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 Three

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

:: Clears autosuggest file and URL references
rundll32 InetCpl.cpl,ClearMyTracksByProcess 1

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: 88
  • Clear_File_Explorer_history_for_current_user.bat
    964 bytes · Views: 6
Last edited:
Made an account just to say thanks! The BAT file worked great.

Edit: I used option 2 to clear OneDrive files from the Recent Files list
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom
    CPU
    i9-9900k
    Motherboard
    Gigabyte Z390 Aorus Master
    Memory
    Crucial Ballistix 2x 8GB 3600Mhz CL16
    Graphics Card(s)
    Gigabyte Aorus Master RTX3070
    Sound Card
    Behringer UMC404HD
    Monitor(s) Displays
    Iiyama G-Master Red Eagle 27"
    Screen Resolution
    1440p 144Hz
    Hard Drives
    Samsung SSDs
    WD HDDs
    PSU
    Seasonic Focus GX-850
    Case
    NZXT S340 Elite
    Cooling
    NZXT Kraken
    Keyboard
    Logitech MX Keys
    Mouse
    Logitech MX Master 2S
    Internet Speed
    350Mbps
    Browser
    Chrome
    Antivirus
    Windows Defender
Made an account just to say thanks! The BAT file worked great.

Edit: I used option 2 to clear OneDrive files from the Recent Files list

I'm glad it could help dkhemmen, and welcome. :shawn:
 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1 14-eu0098nr (2024)
    CPU
    Intel Core Ultra 7 155H 4.8 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Graphics card(s)
    Integrated Intel Arc
    Sound Card
    Poly Studio
    Monitor(s) Displays
    14" 2.8K OLED multitouch
    Screen Resolution
    2880 x 1800
    Hard Drives
    2 TB PCIe NVMe M.2 SSD
    Internet Speed
    Intel Wi-Fi 7 BE200 (2x2) and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender and Malwarebytes Premium
just like dkhemmen i have that list of onedrive folders that won't disappear but unfortunately both options didn't work for me, even weirder i got that on both my pcs that are linked to my MS account so it seems this bug is even synced across computers...
 

My Computer

System One

  • OS
    Windows 11
Thanks @Brink,

reg delete HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\RunMRU /F - as a Bat file just to clear the run history makes it easy. (y)
 

My Computers

System One System Two

  • OS
    Win 11 Pro & 🐥.
    Computer type
    Laptop
    Manufacturer/Model
    ASUS VivoBook
    CPU
    AMD Ryzen 7 3700U with Radeon Vega Mobile Gfx
    Motherboard
    ASUSTeK COMPUTER INC. X509DA (FP5)
    Memory
    12GB
    Graphics Card(s)
    RX Vega 10 Graphics
    Monitor(s) Displays
    Generic PnP Monitor (1920x1080@60Hz)
    Screen Resolution
    1920x1080@60Hz
    Hard Drives
    Samsung SSD 970 EVO Plus 2TB NVMe 1.3
    Internet Speed
    25 Mbps
    Browser
    Edge
    Antivirus
    Defender
  • Operating System
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    ACER NITRO
    CPU
    AMD Ryzen 7 5800H / 3.2 GHz
    Motherboard
    CZ Scala_CAS (FP6)
    Memory
    32 GB DDR4 SDRAM 3200 MHz
    Graphics card(s)
    NVIDIA GeForce RTX 3060 6 GB GDDR6 SDRAM
    Sound Card
    Realtek Audio. NVIDIA High Definition Audio
    Monitor(s) Displays
    15.6" LED backlight 1920 x 1080 (Full HD) 144 Hz
    Screen Resolution
    1920 x 1080 (Full HD)
    Hard Drives
    Samsung 970 Evo Plus 2TB NVMe M.2
    PSU
    180 Watt, 19.5 V
    Mouse
    Lenovo Bluetooth
    Internet Speed
    25 Mbps
    Browser
    Edge
    Antivirus
    Defender
Does this also clear the device manager recent file or folder that i've been browse before to install custom driver?
 

My Computer

System One

  • OS
    Windows 7
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel
    CPU
    I3-2100
    Motherboard
    DH61WW
    Memory
    8.00 GB
    Graphics Card(s)
    GT 430
    Sound Card
    USB Sound Card
    Monitor(s) Displays
    Acer X193HQ
    Screen Resolution
    1366x768
    Hard Drives
    60 GB SSD
    320 GB HDD
    PSU
    400W
    Case
    Elite 310
    Cooling
    I30
    Keyboard
    K120
    Mouse
    M100
    Internet Speed
    4 Mbps
    Browser
    Google Chrome
    Antivirus
    Avast
    Other Info
    I'm mentally ill
Does this also clear the device manager recent file or folder that i've been browse before to install custom driver?
Hello, and welcome. :alien:

Only in File Explorer.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1 14-eu0098nr (2024)
    CPU
    Intel Core Ultra 7 155H 4.8 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Graphics card(s)
    Integrated Intel Arc
    Sound Card
    Poly Studio
    Monitor(s) Displays
    14" 2.8K OLED multitouch
    Screen Resolution
    2880 x 1800
    Hard Drives
    2 TB PCIe NVMe M.2 SSD
    Internet Speed
    Intel Wi-Fi 7 BE200 (2x2) and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender and Malwarebytes Premium

Latest Support Threads

Back
Top Bottom