We currently have a cronjob doing this, called gc.sh. gc.sh implements an all or nothing approach, where it deletes all cached objects when disk space drops below a threshold. For the new version, we want to keep as many cached items as possible, and only drop as many of the oldest items as necessary in order to drop below the threshold.