Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Automatically deleting old files from recycling bin while keeping the new ones?

How do i tell the recycle bin to delete files older than X days? I tried writing a program to do it but it seems like a lot of trouble (to bad it isnt just simply checking access time). I found programs which delete ALL files on a schedule but i like to delete only files thats been in there for a few days.

I'm using windows7

share|improve this question

marked as duplicate by music2myear, Renan, bwDraco, BBlake, ChrisF Oct 8 '12 at 16:21

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

On Windows 7 you can just use RecycleBinEx (, a small application that does just this. Please see – gerlos Oct 9 '14 at 9:42

You can go through the multitude of answers on ServerFault or StackOverflow. All you have to do is write a batch file or vbs script that looks for files older than X days in the given directory.

Here's Jeff Atwood's post with suggestions for a vbs script. There's also a batch file approach for the same; you might need a few tweaks to get it going for the recycle bin.

share|improve this answer
Not helpful. The answers check if the files exist for more then X days. I'd like to delete files when they been in the folder for more than X days. As Patrick S. mentioned if you right click the file and look at the property you can see when it was put in the recycle bin. I just have no idea what winapi to call to get to that – acidzombie24 May 2 '12 at 10:21
Don't the answers specifically say that 'files older than X days will be deleted'? The only hitch with those methods is that you have to manually run the scripts to perform deletion. If you're looking for an automatic way to tell the recycle bin to delete such files, then I'm sorry I misunderstood – prrao May 2 '12 at 19:25

This software is rather old, and I know nothing about it. That being said:


share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.