Delete the physical binaries using a cron. This should be added to Primary and Minions if clustered (see Additional Notes to make this change persistent).
Edit /etc/cron.d/cb by adding this line, mtime is set to +60 days for this example running at 2am once a day
Note: The cron should be added anywhere in the /etc/cron.d/cb file above this line
# Cron requires that each entry in a crontab end in a newline. This comment is included to ensure that's always the case.
Run df -h to confirm partition space is being gained back.
Additional Information
To make step 6 permanent, add the cron to /etc/cb/cron/cb.cron.template. If services are restarted, the /etc/cron.d/cb file will be overwritten with the template.
These steps remove only the physical binary files that are uploaded to the server. This will affect the binary download from the binary info page, but will not affect the binary metadata in the binary search page
To view how much space is being taken by the postgres tables before and after run
psql -p 5002 -d cb -c "SELECT nspname || '.' || relname AS "relation", pg_size_pretty(pg_relation_size(C.oid)) AS "size"
FROM pg_class C LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace) WHERE nspname NOT IN ('pg_catalog', 'information_schema')
ORDER BY pg_relation_size(C.oid) DESC;"