Clear File Explorer History Automatically
Windows 10 cannot clear File Explorer history on its own schedule, so you build one. Save a short batch file, create a Task Scheduler task that runs it at sign-in or weekly, and test it once by hand. A cleaning tool with a schedule is the simpler alternative.
Clear File Explorer History Automatically
This page is part of our guide to clearing File Explorer history in Windows 10. Windows 10 has no switch for timed clearing, so automation means a script plus Task Scheduler, or a tool with a schedule.
The method here is Trigger, Action, Test. Pick when it runs, pick what it runs, then test it once by hand before you trust it.
Step 1: Write the Action
Save the script below as clear-explorer.bat in a folder such as C:\Scripts. It exports a backup, then deletes the two registry lists. Run it by hand once with no File Explorer windows open.
@echo off
rem Clears typed paths and File Explorer search terms for the current user.
reg export "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\TypedPaths" "%USERPROFILE%\Documents\TypedPaths-backup.reg" /y
reg export "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\WordWheelQuery" "%USERPROFILE%\Documents\WordWheelQuery-backup.reg" /y
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\TypedPaths" /f
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\WordWheelQuery" /fThe script covers two lists only. The Quick access and jump list entries stay, because they live in other places. Pair it with the Settings toggle from the manual section if you need them cleared too.
Step 2: Set the Trigger in Task Scheduler
Open Task Scheduler
Press the Windows key, type Task Scheduler and open it.
Create a basic task
Choose Create Basic Task and name it, for example Clear Explorer lists.
Choose the trigger
Pick Daily, Weekly or When I log on. A sign-in trigger runs before you open File Explorer windows, which suits the script.
Choose the action
Select Start a program and browse to your batch file.
Finish and run once
Right-click the task in the library and choose Run to test it.
You can create the same task from a command prompt. This line runs the script every Sunday at 20:00:
schtasks /create /tn "Clear Explorer lists" /tr "C:\Scripts\clear-explorer.bat" /sc weekly /d SUN /st 20:00Step 3: Test, Then Choose a Tool if You Prefer
After the first run, open File Explorer, type a letter in the address bar and open the search box. Both should show no old suggestions. If the lists still hold entries, run the script again when no File Explorer windows are open. Keep the .reg backups until you are happy with the result.
If a script feels like too much, History Clean lists scheduled cleaning and, in its settings, options to load at startup and clean at shutdown. Download it from the NewSoftwares download page and try it on a spare account first. See the comparison guide for what each route covers.
Automatic clearing empties the lists, and ordinary use refills them within minutes. If the PC is shared, separate Windows accounts matter more. See the shared PC checklist.
If the Task Does Not Run
Most failures come from a path or a permission. Check these in order.
- Open the task’s History tab, or the Last Run Result column, for an error code.
- Confirm the batch file path has no typo and the folder exists.
- Run the .bat by double-clicking it. If it fails there, the problem is the script, not the schedule.
- Check that File Explorer windows were closed, since open windows can write entries back.
| Trigger | Runs when | Good for |
|---|---|---|
| When I log on | You sign in | Registry lists, because no windows are open yet |
| Weekly | A set day and time | A PC that is on at the same time each week |
| At shutdown through a tool | You shut down | People who forget to clear by hand |
If you also use the manual routes for jump lists, add the Settings toggle to your end-of-week habit, since the script does not cover it.
Questions About Automatic Clearing
Can Windows 10 clear File Explorer history on a schedule by itself?
No. Windows 10 has no built-in timer for it. You need Task Scheduler running a script, or a cleaning tool with its own schedule.
Do I need administrator rights for Task Scheduler?
A task that runs for your own account and changes only your own registry keys normally does not. Corporate PCs may restrict Task Scheduler, so ask IT there.
Should the task run at sign-in or on a weekly timer?
A sign-in trigger runs before File Explorer windows open, which suits registry changes. A weekly timer is fine if you close File Explorer first.
Will the script delete my files?
No. It exports two registry keys and deletes them. File Explorer recreates what it needs when you next type a path or search.
How do I undo the script?
Double-click the .reg backup files the script saved. Windows merges them back into the registry.
Prefer a saved routine without scripts? Test the free tool on a spare account.
Download History Clean free →