Windows 11 & 10 store the list of the commands we have executed from Run window. This ‘Run’ command history can be seen by clicking on the drop down list in Run window.
This history of Run commands is saved in registry key which is specific to each user of the computer. One can clear this command history by deleting all values under this registry key.
This registry key is
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU
How to delete Run history in Windows 11 & 10
So to delete Run command history we can simply run the below command from command prompt. Run it from the user account whose history you want to clear, and check the registry path carefully before executing it.
reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU /va /f
The /va option deletes all values under this key, while /f skips the confirmation prompt. The key itself is not deleted.
Note that after running the above command you may still see history for the current login session. Sign out and sign back in before checking the Run history again.
This clears the Run window’s saved command list for the current user, not Command Prompt or PowerShell history.
How to delete history of run command.
Note: I don’t want to do it with regedit.
Is there any other process please let me know..
That solution DID NOT WORK for me! I’m using Windows 10, and the pesky history STILL shows up in my run box. How do I get rid of it! I’m almost to the point of reformatting this disk and re-installing Windows to get rid of it! Is there an easier way?
reg delete HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Explorer \ RunMRU / va / f
Seems tedious to find the registry key when you can close the command window and reopen it. I was hoping someone could provide a line command that clears the history.
Not used app and install
None of this helps a windows 10 home premium user
Helped me find what I needed! I just went to the reg key listed and emptied the string values for the items I didn’t want in the run line history!
Very nice to not have my valid commands buried under incorrect attempts!
Great hint thanks. Win 7
It works but not totally bcoz its limited only 28 nos of entries get listed in there it doesn’t let us delete all the histories
Another Solution
=============
open start button properties -> click on start menu tab -> uncheck ‘store and display recently opened programs in the start menu’.
Thanks It working very nice.
Thanks,
Dear,
it (reg delete HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Explorer\RunMRU /va /f)
Works on Win-7
It’s working on windows 7 thanks.
Frey, thanks for adding the comment.. Yes we can do the same from UI too..But in case if you want to clear the run history repeatedly then running this command from a script is a good idea..suppose if I want to clear the cache everytime I login, then running this reg command from login script is a simpler solution compared to the UI one..
You just have to right click the start button then properties uncheck the boxes and thats it.
Solution works on 32 and 64 bit windows 7… Thanks!
Anonymous,
The solution posted in this article works for Windows 7 too.. just pause few seconds after deleting the regkey and open 'Run'.. I have just tried this on my windows 7 machine and it has worked fine…
I am not sure about the solution posted by D2 above..
Are you guys talking about Windows 7? Deleting RunMRU does not delete the "suggested" list of commands. As far as the "2nd way", "Properties" in Windows 7 brings "Taskbar and Start Menu Properties" that has three tabs; Taskbar and Start Menu have their own Customize buttons. Please verify your solutions before posting them.