Clear File Explorer address bar history
- Windows onlyThis script improves your privacy on Windows
- Single actionThis page belongs to a script, containing basic changes to achieve a task.
- Impact: Medium
System Functionality / Data Loss Risk: Moderate
This action improves privacy with minimal impact when you run the recommended script.
This action improves privacy with some impact when you run the recommended script. - Batch (batchfile)These changes use Windows system commands to update your settings.
- Administrator rights requiredThis script requires privilege access to do the system changes
- Fully reversible
You can fully restore this action (revert back to the original behavior) using this website.
The restore/revert methods provided here can help you fix issues.
Overview
This script clears the history of paths you've typed in the File Explorer address bar.
Windows stores recent paths entered in File Explorer 1 2 3 (formerly known as Windows Explorer 1 2). This specifically targets paths that have been manually typed into the Address Bar 2 3. These can be file or folder locations 2. Windows saves up to 25 of these entries 1. The paths are saved upon closing the File Explorer window 1.
This stored data includes:
This information may pose privacy and security risks:
- Reveals your file access history 1 2
- Allows tracking of when and how often files were accessed 1 2
- Enables detection of activity patterns, such as specific application use 2
- Can be used to build a timeline of user actions 2
- Can be exploited by malware to maintain persistence on the system 4
- Can be used by attackers to map system structure or track behavior
- Facilitates social engineering attacks based on file access patterns
This data is often used in forensic investigations 1 2. This data can be used in investigations related to intellectual property theft, employee misconduct, security breaches, or other criminal activities 2.
This script enhances privacy by:
- Removing traces of your file system navigation
- Reducing unauthorized access risk to your browsing history
- Limiting data available for forensic analysis
- Preventing exposure of sensitive file or folder names
- Reducing risk of attacks based on file access patterns
- Minimizing digital footprint on shared or public computers
- Protecting against certain types of malware
- Maintaining confidentiality of work or personal projects
It can also slightly improve system performance by freeing up space and reducing the data Windows processes when accessing File Explorer history.
This script deletes all registry values under:
HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\TypedPaths
1 2 3.
This subkey includes values named url1
, url2
, url3
, etc., with url1
always containing the most recent typed path 1.
This script may impair your ability to quickly access recently typed file paths in File Explorer, potentially affecting your workflow efficiency.
This script is only recommended if you understand its implications.
Some non-critical or features may no longer function correctly after running this script.
This script can be fully reversed to restore changes if something goes wrong.
Sources
- Typed Paths Blog. forensafe.com. (2024).
Original: https://forensafe.com/blogs/typedpaths.html
Archived: https://web.archive.org/web/20240801124433/https://forensafe.com/blogs/typedpaths.html - New Orleans Forensics, Expert computer forensics. NOLA Forensics. Mobile forensics, Memory forensics, Disk forensics.. Forensics. www.3fforensics.com. (2024).
Original: https://www.3fforensics.com/forensics/typed-paths.html
Archived: https://web.archive.org/web/20240801124441/https://www.3fforensics.com/forensics/typed-paths.html - Clear File Explorer History in Windows 11 Tutorial. Windows 11 Forum. www.elevenforum.com. (2024).
Original: https://www.elevenforum.com/t/clear-file-explorer-history-in-windows-11.8468
Archived: https://web.archive.org/web/20240801102250/https://www.elevenforum.com/t/clear-file-explorer-history-in-windows-11.8468/ - x.com. (2024).
Original: https://x.com/dez_/status/1560101453150257154
Archived: https://archive.ph/2024.08.01-102204/https://x.com/dez_/status/1560101453150257154
Apply Now
Choose one of three ways to apply:
Download script
Download and run the script directly- No app needed
- Offline usage
- Easy-to-apply
- Free
- Open-source
Help
How to apply or restore "Clear File Explorer address bar history" using script
- ≈ 2 min to complete
- Tools: Web Browser
- Difficulty: Simple
- ≈ 5 instructions
- 1
Download
Download the script file by clicking on thebutton above.
Use button above to restore changes. - 2
Keep the file
If warned by your browser, keep the file. - 3
Open
Open the downloaded file. - 4
Exit
Once it's done, press any key to exit the window. - 5
Restart
Restart your computer for all changes to take effect.
Apply with privacy.sexy
Guided, automated application with safety checks- Recommended for most users
- Includes safety checks
- Free
- Open-source
- Popular
- Offline/Online usage
Help
How to apply or restore "Clear File Explorer address bar history" using privacy.sexy
- ≈ 3 min to complete
- Tools: privacy.sexy
- Difficulty: Simple
- ≈ 4 instructions
- 2
Choose script
- Search for the script name: Clear File Explorer address bar history
- Check the script by clicking on the checkbox.
- 3
Run
Click on ▶️ Run button at the bottom of the page.This button only appears on desktop version (recommended). On browser, use 💾 Save button.
- Apply
- Revert
:: Clear registry values from "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\TypedPaths"
PowerShell -ExecutionPolicy Unrestricted -Command "$rootRegistryKeyPath = 'HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\TypedPaths'; function Clear-RegistryKeyValues { try { $currentRegistryKeyPath = $args[0]; Write-Output "^""Clearing registry values from `"^""$currentRegistryKeyPath`"^""."^""; $formattedRegistryKeyPath = $currentRegistryKeyPath -replace '^([^\\]+)', '$1:'; if (-Not (Test-Path -LiteralPath $formattedRegistryKeyPath)) { Write-Output "^""Skipping: Registry key not found: `"^""$formattedRegistryKeyPath`"^""."^""; return; }; $directValueNames=(Get-Item -LiteralPath $formattedRegistryKeyPath -ErrorAction Stop | Select-Object -ExpandProperty Property); if (-Not $directValueNames) { Write-Output 'Skipping: Registry key has no direct values.'; } else { foreach ($valueName in $directValueNames) { Remove-ItemProperty -LiteralPath $formattedRegistryKeyPath -Name $valueName -ErrorAction Stop; Write-Output "^""Successfully deleted value: `"^""$valueName`"^"" from `"^""$formattedRegistryKeyPath`"^""."^""; }; Write-Output "^""Successfully cleared all direct values in `"^""$formattedRegistryKeyPath`"^""."^""; }; } catch { Write-Error "^""Failed to clear registry values in `"^""$formattedRegistryKeyPath`"^"". Error: $_"^""; Exit 1; }; }; Clear-RegistryKeyValues $rootRegistryKeyPath"
IiI=
Help
How to apply or restore "Clear File Explorer address bar history" using commands
- ≈ 2 min to complete
- Tools: Command Prompt
- Difficulty: Medium
- ≈ 3 instructions
- 1
Open Command Prompt
Open Command Prompt as Administrator. - 2
Copy code
Copy the code: - 3
Paste & run
Paste the commands into Command Prompt and press Enter to run.Some changes require a system restart to take effect
Similar Guides
Wider Goal
Guides below includes this guide to achieve a wider goal.See other more general settings that includes this one as one of its actions.
These plans combine multiple privacy settings, including this one, for stronger protection.
- Clear recent activity
- Privacy cleanup
This category includes scripts that erase traces of recent user activities on Windows. These scripts enhance privacy by removing records of accessed files, used ap...
Privacy cleanup to protect your data with support of proper personal data control on Windows — Read along, this system calibration illustrates just that. What's eq...
Same Goal
Other guides in Clear recent activitySee settings that are in the same category as this guide.
Using other actions in the same category may help you achieve your goal better.
See all 12 guides
About the Creators
These people have authored this documentation and written its scripts:
Reviewed By
This guide has undergone comprehensive auditing and peer review:Expert review by undergroundwires
- Verified technical accuracy and editorial standards
- Assessed system impact and user privacy risks
Public review by large community
- Privacy enthusiasts and professionals peer-reviewed
- Millions of end-users tested across different environments
History
We continually monitor our guides, their impact and all other privacy options. We update our guides when new information becomes available. On every update, we publicly store who made the change, what has been changed, why the change was made and when the change was made.