Erasing old builds on Jenkins to free up space
If you need to free up space on your Jenkins server and you don’t mind losing all your old build information, you can do this:
sudo rm -rf /var/lib/jenkins/jobs/MYJOBNAME/builds
sudo service jenkins restart
sudo apachectl restart