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.zip 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 ZIP file to your desktop.

3 Unblock the ZIP file.

4 Extract the BAT file from the ZIP file.

5 Run the BAT file.

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

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


That's it,
Shawn Brink


 

Attachments

  • Clear_File_Explorer_history_for_current_user.zip
    685 bytes · Views: 188
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
    Surface Laptop Copilot+ PC
    CPU
    Snapdragon X Elite (12 core) 3.42 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Monitor(s) Displays
    15" HDR
    Screen Resolution
    2496 x 1664
    Hard Drives
    1 TB SSD
    Internet Speed
    Wi-Fi 7 and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender
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 Home & 🐥.
    Computer type
    Laptop
    Manufacturer/Model
    ACER Nitro AN16-41
    CPU
    AMD Ryzen™ 7 7735HS Processor 3.2Ghz
    Motherboard
    RB Sierra_PEH (FP7)
    Memory
    32 GB DDR5 4800MHz
    Graphics Card(s)
    NVIDIA GeForce RTX 4060 8GB GDDR6
    Monitor(s) Displays
    16" QHD+ 165Hz 16:10 IPS Technology
    Screen Resolution
    1920 X 1200
    Hard Drives
    Samsung 990 PRO 2TB
    PSU
    330 Watts
    Mouse
    Lenovo Bluetooth.
    Internet Speed
    500 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
    500 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
    Surface Laptop Copilot+ PC
    CPU
    Snapdragon X Elite (12 core) 3.42 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Monitor(s) Displays
    15" HDR
    Screen Resolution
    2496 x 1664
    Hard Drives
    1 TB SSD
    Internet Speed
    Wi-Fi 7 and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender
Many thanks Shawn Brink. The BAT file worked (options 1 and 2 did not). A good, quick and easy fix!
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    HP Elite Book 850 G6
    CPU
    Intel core i7
    Motherboard
    ?
    Memory
    32Gb
    Screen Resolution
    1366x768
    Hard Drives
    SSD
    Keyboard
    UK
    Browser
    Google Chrome
    Antivirus
    AVG Internet Security
Many thanks Shawn Brink. The BAT file worked (options 1 and 2 did not). A good, quick and easy fix!
I'm glad it could help, 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
    Surface Laptop Copilot+ PC
    CPU
    Snapdragon X Elite (12 core) 3.42 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Monitor(s) Displays
    15" HDR
    Screen Resolution
    2496 x 1664
    Hard Drives
    1 TB SSD
    Internet Speed
    Wi-Fi 7 and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender
Back
Top Bottom