The Windows Run function remembers the previous commands. But it is possible to erase this history. The procedure varies depending on the version of Windows.
Steps
Method 1 of 2: Clear program history Run in Windows 10

Step 1. Open the Start menu
Click on the button To start up (the Windows logo), which can be found at the bottom left of your screen or press the ⊞ Win key on your keyboard.

Step 2. Type regedit in the search box
This will bring up the Registry Editor in the list of results.

Step 3. Click on regedit
The icon represents a set of blue cubes.

Step 4. Click Yes
You must confirm that you are opening Registry Editor with administrator rights.

Step 5. Navigate to the RunMRU folder
The files in the registry are arranged in alphabetical order.
- Unroll the file HKEY_CURRENT_USER. To do this, click on the icon
, located on its right. The folder and all of the following folders will be displayed in the left column.
- Unroll the file Software.
- Then do the same with the folder Microsoft.
- Go down and open the folder Windows.
- Unroll the file CurrentVersion.
- Open the folder To explore.

Step 6. Click on the RunMRU folder
Its contents will then be displayed on the right side of the Registry Editor.

Step 7. Highlight the items
Highlight all the contents of the folder RunMRU, with the exception of Default. Click and drag your mouse cursor to the left to highlight these items.
You should see the names of the history items, in the Data column

Step 8. Erase the items
Right-click on one of the entries, then click Remove. The option is at the bottom of the drop-down menu. Clicking on it will open a popup window.
If you are using a laptop with a touchpad, use two fingers instead of the right click

Step 9. Click Yes
By doing this, you will erase the history of the Run program.
- You may see a message saying Unable to delete all data from the registry, despite this message, the Run command history will be empty the next time you view it.
Method 2 of 2: Clear Run History in Windows 7 and 8

Step 1. Right click on the taskbar
The task bar is located at the bottom of your screen. You may need to hover your mouse over this area to make it appear.
If you're using a laptop with a buttonless touchpad, use two fingers to replace the right click

Step 2. Click Properties
The option is at the bottom of the context menu.

Step 3. Click Start
The tab is located at the top of the Properties window.
- In Windows 8, click the tab Recent documents.

Step 4. Delete recent documents
Uncheck the box Store and display recently opened programs in the Start menu. Click on the box and you should see the check mark disappear.

Step 5. Click Apply
The button is at the bottom of the window.

Step 6. Check the box again
Click again on the box to check it again. The Run program history should now be empty.
Advice
- You can also use the Registry Editor method with Windows 7 and 8, but you will have to navigate to the folder manually (expand the folders HKEY_CURRENT_USER up to To explore, then click RunMRU).