I use to commends: find /path/to/files* -mtime +3 -exec rm {} \; truncate -s 100 MB /path/to/files*