Categories: User Settings

Clear/Disable Recent Documents

In Windows start menu, we can see the list of recently opened documents(text, word, excel, power point, image files etc).  In Window XP and Server 2003, this is named ‘Recent Documents‘ where as in Vista and Windows 7, it’s named ‘Recent Items‘. The list looks like the following in Windows 7.

 

This list of recent documents/recent items can be deleted from command line by executing the below command.

reg delete HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs /a

The changes will be effective immediately.

Disable recent documents list in start menu

We can make windows not to show the recent documents list in the start menu. This can be done by running the following command.

reg add HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced /v Start_ShowRecentDocs /t REG_DWORD /d 0 /f

In this case, the changes won’t be effective until you log off from the current session and log in back.

To enable recent items list we can run the following command.

reg add HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced /v Start_ShowRecentDocs /t REG_DWORD /d 1 /f

I have tested the above commands on Windows 7 and have found them to be working. If you have tried this commands on XP/Vista, please share the results.

Srini

View Comments

  • XP SP3 - fail. -- Have you tested this? Have you viewed your page? (the code box is so small you can hardly see the code). How about adding a working script to download? Maybe include a way to delete a single file from the recent docs?

    • The same registry key holds the list of items on XP also, so it should work on XP too. I've changed the page to show the command clearly. Can you try again and share the result here?

  • I realize I'm a year and half late to this party but...

    In XP, for the delete command, /a doesn't work. To delete the entire RecentDocs folder and subfolders, just use that command w/out the /a Or /va deletes all the keys in the RecentDocs folder but it leaves all the subfolders so you may end up w/ a lot of garbage... I didn't test it further. I'm thinking of putting it in a shut-down event script, so /f is useful.

    And for people like Bill... launch a command prompt, type in "reg delete /?" and you can see the switches that work. It took 30 extra seconds to figure out.

    And no, you can't delete a single file from the list unless you want to inspect keys stored in binary value. Maybe you shouldn't be sneaking around on other peoples' computers and trying to hide the evidence!

Share
Published by
Srini

Recent Posts

Add new user account from command line (CMD)

Adding users from command line is much easier than going through the UI. It saves…

4 years ago

Delete directory from command line [Rmdir]

Do you want to delete a directory from Windows command prompt(CMD)? This post explains how…

4 years ago

TaskKill: Kill process from command line (CMD)

We can kill a process from GUI using Task manager. If you want to do…

4 years ago

Kill Chrome from command line

Chrome is definitely the stable browser compared to other ones and it has been my…

4 years ago

Find windows OS version from command line

Windows has multiple command line utilities that can help find the version of the Windows…

4 years ago

How to check if Windows 32 or 64 bit?

There are multiple ways to check whether a Windows computer is running 32-bit OS or…

7 years ago