WebJCL was originally developed to save the last 5 job submissions for convienence sake. In the end this was never adequately implemented with MongoDB and instead ALL submissions are saved. After awhile it runs out of memory/disk on small vps.
# Make the remote mongo instance appear on the localhost
ssh -N -L 27017:localhost:27017 ssh-hostname
# Dump the entire mongodb to $PWD/dump
mongodump
# Inside the mongo shell
use WebJCL
db.dropDatabase()
# Run the following on the host which contains mongodb
# Stop mongodb EX:
sudo service mongodb stop
# Delete database files
rm -rf /var/lib/mongodb
# Start mongodb EX:
sudo service mongodb start