File and Folder purging tool

Posted on 2016-09-12
Last Modified: 2016-10-18
Hi All,

I'm looking for a automated third party tool to delete the local files and folders, remote share drives files and folders with respect to various retention Periods.

Could anyone please help me with the tools information
Question by:MSSG_RRD
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +1
LVL 55

Expert Comment

by:Bill Prew
ID: 41794294
Often this is done by a script of some sort (BAT, VBS, Powershell) where you list a set of delete commands that also take into account the retention rules.  But depending on the complexity of your needs or rules that might be too simple an approach.

Can you elaborate more on the requirements you have put together?  Things like what is to be purged, is anything archived before purging, logging needs, What date stamp do you want to use (created, accessed, modified), are you just removing files or whole folders if they are old or empty, etc.  The better your description of your need the faster and more accurately a solution can be suggested.


Author Comment

ID: 41794314
Hi BP,

Thanks for the response.

We are looking for a GUI Based tools which will delete the files (.docx,.xlsx, images, video files) which will get saved on the file servers and the deletion should happen on daily basis in a specified time with various retention period (30 days, 60 days, 90 days etc..)
LVL 55

Accepted Solution

Bill Prew earned 167 total points (awarded by participants)
ID: 41794341
Take a look at MSH, seems to match what you are describing and you can download a free eval version to play with.

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users


Author Comment

ID: 41794376
Thanks Bill... Will check on this

Assisted Solution

by:Philip Kao
Philip Kao earned 167 total points (awarded by participants)
ID: 41798758
Does your company have a need to create an audit log of such purge activities?  If so, then an automated tool may not work without logging capabilities.  Not saying that Bill's suggested tool is bad, just that if auditing is necessary, it may not record the deleted files.  If so, then Beyond Compare ( may be a different option.  It works great and records everything being deleted.
LVL 55

Expert Comment

by:Bill Prew
ID: 41798781
Beyond Compare ( may be a different option

How does Beyond Compare purge by date, I have only seen it do folder and file comparisons to identify differences between them?


Expert Comment

by:Philip Kao
ID: 41798793
It can be used as a date range to match criteria.  I've used it to restore whole time lapses as well as purge via time lapses.  It is one of the lesser advertised features and only available from the fully enabled version.  It may be one of the more powerful tools out there.
LVL 29

Assisted Solution

serialband earned 166 total points (awarded by participants)
ID: 41799183
There are also built in commands for that kind of work.

Windows has the forfiles command.
forfiles /p "C:\PATH" /s /m *.* /d -<number of days>
forfiles /p "C:\PATH" /s /m *.* /d -<date>

find files older than 9 days
forfiles /p "C:\PATH" /s /m *.* /d -9

find files older than August 31, 2016
forfiles /p "C:\PATH" /s /m *.* /d -8/31/2016

Unix/Linux/OS X has the find command which I'm more familiar with.

If you want to find all files that were modified more than 9 days ago
find {folder} -mtime 9

If you want to also delete those files
find {folder} -mtime 9 -delete

You could also set a file to a specific time and find files older than it.
Create a file with a fixed time stamp of 2016, August 31, at 12:00:00pm
touch -t 201608311200.00 files_older_than

Then use that to compare
find {folder} ! -newer files_older_than

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
Many businesses neglect disaster recovery and treat it as an after-thought. I can tell you first hand that data will be lost, hard drives die, servers will be hacked, and careless (or malicious) employees can ruin your data.
Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question