Skip to content

RegularRecycler scans through all trash folders on linux system and deletes files older than a given number of days or size in MB. Set it up with a LazyCron schedule to keep the Trash clear of old files.

Notifications You must be signed in to change notification settings

SurpriseDog/Regular-Recycler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Regular Recycler is a simple script to scan all of the trash folders it can and delete older files. Set it up with LazyCron to run it on a regular schedule and keep the trash folders clear of older files so they don't take up too much space.

Usage:

Specify the number of days for files to be deleted:

  ./RegularRecycler.py --age <file age in days>  

You can also set more strict requirements for larger files:

  ./RegularRecycler.py --largeage <file age in days>  

By default, it will simply print each file that would be deleted.

To actually delete them, run it with the --destroy option.


Get help by typing ./RegularRecycler.py -h for a full list of options.

About

RegularRecycler scans through all trash folders on linux system and deletes files older than a given number of days or size in MB. Set it up with a LazyCron schedule to keep the Trash clear of old files.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages