Platformsh - Disk Cleanup

Search for files older than 200 days:

find . -type f -mtime +200 -exec du -ks {} \; | cut -f1 | awk '{total=total+$1}END{print total/1024}'

Delete files older than 200 days:

find . -type f -mtime +200 -exec  rm {} \;

Sources:

  • https://www.howtogeek.com/howto/ubuntu/delete-files-older-than-x-days-on-linux/