To delete, enable, or disable the Windows Run history, you use the Registry Editor or the Settings app (Windows 11) to clear the current entries and control whether new ones are saved. The Run dialog (Win+R) stores every command you type, and this article explains exactly how to clear that list, turn the feature off entirely, and what to do if the setting doesn’t stick.
What the Run History Is
The Run dialog has been part of Windows since the 1990s. It is a quick way to launch programs, open folders, or run commands by typing a name (like cmd, msconfig, or \server\share). For convenience, Windows automatically remembers everything you type there, so you can select it again from a drop-down list the next time you press Win+R.
That history is stored in the Windows Registry, not in a plain text file. Specifically, it lives under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU. Each entry is a value named with a letter (a, b, c, …) and contains the command text. The order is tracked by a value called MRUList, which lists the letters in the order they were most recently used.
This matters because simply deleting the visible entries from the dialog (by hovering and pressing Delete) only removes them from the list you see, but it does not fully clear the registry values in all cases. To truly wipe the list, you need to edit the registry or use the built-in clear option in Windows 11.
How to Clear the Run History
There are three main methods, depending on your Windows version and how thorough you want to be.
Method 1: Clear from the Run Dialog (Windows 10 and 11)
- Press Win+R to open the Run dialog.
- Click inside the text box and press Ctrl+A to select all text (or just click the drop-down arrow).
- Press the Delete key. This removes the currently highlighted entry, but only one at a time. Repeat until the list is empty.
This method is tedious and does not always clear everything, especially if you have many entries. It is best for quickly removing one or two commands you no longer want.
Method 2: Use Settings (Windows 11 only)
- Open Settings (Win+I).
- Go to Privacy & security → Activity history (or General in some builds).
- Under Clear activity history, click Clear.
This clears the Run history along with other activity data, like your quick access in File Explorer. It does not disable the feature; it just wipes the current list.
Method 3: Registry Editor (all versions)
- Press Win+R, type
regedit, and press Enter. - Navigate to
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU. - Select all values on the right (except
(Default)) and delete them. - Close the Registry Editor and restart Explorer (or sign out and back in) to refresh the list.
This is the most complete method. It removes every stored command. Be careful: deleting the entire RunMRU key is also safe—it will be recreated when you next use Run.
How to Disable Run History Entirely
If you do not want Windows to remember any Run commands in the future, you can disable the feature via Group Policy or the Registry. This is useful on shared computers or if you value privacy.
Group Policy (Windows Pro/Enterprise)
- Press Win+R, type
gpedit.msc, and press Enter. - Go to User Configuration → Administrative Templates → Start Menu and Taskbar.
- Double-click Remove Run menu from Start Menu – but that removes the Run command entirely, not just the history.
- Instead, look for Do not keep history of recently opened documents – this affects the Run history as well.
Actually, the most direct policy is User Configuration → Administrative Templates → Start Menu and Taskbar → Remove Run menu from Start Menu. That removes the Run dialog, but that is too drastic if you still want to use it. The better approach is the registry method below.
Registry (all versions)
- Open Registry Editor.
- Go to
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced. - Create a new DWORD (32-bit) value named
Start_TrackDocs. - Set its value to 0 (zero). If you set it to 1, history is enabled.
- Restart Explorer or sign out and back in.
This disables the tracking of recently opened documents, which also stops the Run history from being recorded. Note that this does not delete existing entries; you still need to clear them first.
How to Re-Enable Run History
To turn history back on, simply reverse the registry change: set Start_TrackDocs to 1 (or delete the value). If you used Group Policy, set it to Not Configured or Disabled. After that, new commands you type will be saved again.
Keep in mind that if you are on Windows 11 and you used the Settings clear option, there is no separate toggle for Run history specifically—the same Activity history setting controls it. In Windows 10, the toggle is under Settings → Privacy → Activity history.
Common Problems and Fixes
- History still shows after clearing: Make sure you restarted Explorer or signed out. The registry change only takes effect after a refresh.
- Can’t find the RunMRU key: It is created only after you use the Run dialog at least once. If you never used Run, it might not exist—that’s normal.
- Group Policy missing: The Group Policy Editor is only available on Pro, Enterprise, or Education editions of Windows. On Home, use the registry method.
- Deleting individual entries with Delete key does nothing: You must first click on the entry in the drop-down list, then press Delete. Hovering alone doesn’t select it.
- Run history is not saved even though you didn’t disable it: Some third-party privacy tools or IT policies may have already set
Start_TrackDocsto 0. Check the registry value.
Privacy and Security Considerations
The Run history is stored in plain text in the registry. Anyone with access to your user account can read it. This is a privacy concern if you share a computer or if your device is lost or stolen. Commands you type might reveal program paths, server names, or even passwords if you accidentally type them (e.g., net use \server /user:name password).
Clearing the history is a good practice, but it is not a security feature. If you need to keep commands secret, do not use the Run dialog for sensitive operations—use a terminal with a secure prompt or a password manager instead. Also, the Run history is separate from the command prompt history (which is stored in a different location).
On a corporate-managed computer, Group Policy may override your registry settings. If you cannot disable it, contact your IT administrator.
Frequently Asked Questions
Does clearing Run history also clear File Explorer history?
No. The Run history is stored separately from the File Explorer quick access list. However, the Windows 11 Settings “Clear activity history” button clears both, so if you use that, you’ll lose both histories.
Can I delete just one entry from Run history?
Yes. Open the Run dialog, click the drop-down arrow, hover over the entry you want to remove, and press the Delete key. That removes only that entry.
Why does my Run history come back after I clear it?
If you are signed into a Microsoft account, Windows may sync some settings, but Run history is not typically synced. More likely, you are using a program or script that adds entries, or you have a policy that re-enables tracking. Check the Start_TrackDocs value and make sure it is 0 if you want it disabled.
Is there a way to clear Run history automatically on shutdown?
There is no built-in setting for that. You can create a batch file that deletes the RunMRU registry values and schedule it to run at logoff using Task Scheduler, but that requires a bit of scripting. A simpler approach is to disable history entirely.
Does the Run history store the exact time I ran a command?
No. The RunMRU registry key only stores the command text and the order of use (via MRUList). It does not store timestamps. If you need a log of when commands were run, you would need to enable auditing or use a third-party tool.
What if I delete the entire RunMRU key?
It is safe. Windows will recreate it the next time you use the Run dialog. You will simply have an empty history. This is the most thorough way to clear everything, including any corrupted entries.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Reliable Subaru vs New Honda Civic Cost
- Pokemon Bookmark Corner Designs & Pokemon GO DIY
- Forgotten Games That Created Your Favorite Genres
- Lexus vs Genesis Luxurious Compact SUV0.075 hp/lb
- Uber VW Robotaxi LA Launch Date
- Notebook vs Tablet: Which Saves You More Money?