locked
Delete contents of Recent folder RRS feed

  • Question

  • I notice the \users\(username)\Recent folder retains on the disk a large collections of links to applications, data files, folders, etc. that have been opened in previous sessions. Is there a convenient routine that can be used to empty out this collection of links at the time of startup of the system?
    I have tried a cmd file with the following line:  echo y | DEL %userprofile%\Recent\*.*
    This method used to work under Windows XP but is ineffective under Windows 7. Any suggestions?
    Thanks
    Monday, March 15, 2010 2:03 AM

Answers

  • Thanks.

    I think you meant to say:

    In Win7 the Recent folder has been moved to
    %userprofile%\AppData\Roaming\Microsoft\Windows\Recent Items\

    The folder under ... Microsoft\Windows\..  seems to be named Recent Items .
    A command like below in a batch file does not quite delete all the links. I will keep trying!

    echo y | DEL %userprofile%\AppData\Roaming\Microsoft\Windows\"Recent Items"\*.*

    Thanks again.
    • Marked as answer by Hemant61 Tuesday, March 16, 2010 3:40 PM
    • Unmarked as answer by Hemant61 Wednesday, March 17, 2010 2:49 AM
    • Marked as answer by Hemant61 Wednesday, March 17, 2010 2:49 AM
    Tuesday, March 16, 2010 3:39 PM
  • Hemant61 schreef op 16-3-2010 16:39:.
    >
    > I think you meant to say:
    >
    > /In Win7 the Recent folder has been moved to
    > %userprofile%\AppData\Roaming\Microsoft\Windows\Recent Items\

    No, the real name of the Folder is "Recent". Windows explorer 'translates' that sometimes
    to "Recent items" :-(

    You could try
    DEL /Q %userprofile%\AppData\Roaming\Microsoft\Windows\Recent\*.*
    (the parameter /Q suppresses the Y/N question)

    --
    Karel Vos [MVP - Windows Desktop Experience]
    • Marked as answer by Hemant61 Wednesday, March 17, 2010 2:49 AM
    Tuesday, March 16, 2010 8:36 PM
  • Thank for all the tips. That worked.
    Regards.
    Hemant
    • Marked as answer by Hemant61 Wednesday, March 17, 2010 2:49 AM
    Wednesday, March 17, 2010 2:49 AM

All replies

  • Hemant61 schreef op 15-3-2010 3:03:

    > I have tried a cmd file with the following line: echo y | DEL
    > %userprofile%\Recent\*.*
    > This method used to work under Windows XP but is ineffective under Windows 7

    In Win7 the Recent folder has been moved to
    %userprofile%\AppData\Roaming\Microsoft\Windows\Recent\

    --
    Karel Vos [MVP - Windows Desktop Experience]

    Monday, March 15, 2010 9:16 AM
  • Thanks.

    I think you meant to say:

    In Win7 the Recent folder has been moved to
    %userprofile%\AppData\Roaming\Microsoft\Windows\Recent Items\

    The folder under ... Microsoft\Windows\..  seems to be named Recent Items .
    A command like below in a batch file does not quite delete all the links. I will keep trying!

    echo y | DEL %userprofile%\AppData\Roaming\Microsoft\Windows\"Recent Items"\*.*

    Thanks again.
    • Marked as answer by Hemant61 Tuesday, March 16, 2010 3:40 PM
    • Unmarked as answer by Hemant61 Wednesday, March 17, 2010 2:49 AM
    • Marked as answer by Hemant61 Wednesday, March 17, 2010 2:49 AM
    Tuesday, March 16, 2010 3:39 PM
  • Hemant61 schreef op 16-3-2010 16:39:.
    >
    > I think you meant to say:
    >
    > /In Win7 the Recent folder has been moved to
    > %userprofile%\AppData\Roaming\Microsoft\Windows\Recent Items\

    No, the real name of the Folder is "Recent". Windows explorer 'translates' that sometimes
    to "Recent items" :-(

    You could try
    DEL /Q %userprofile%\AppData\Roaming\Microsoft\Windows\Recent\*.*
    (the parameter /Q suppresses the Y/N question)

    --
    Karel Vos [MVP - Windows Desktop Experience]
    • Marked as answer by Hemant61 Wednesday, March 17, 2010 2:49 AM
    Tuesday, March 16, 2010 8:36 PM
  • Thank for all the tips. That worked.
    Regards.
    Hemant
    • Marked as answer by Hemant61 Wednesday, March 17, 2010 2:49 AM
    Wednesday, March 17, 2010 2:49 AM