My attempt at the delete cache code

I added a button to the main page, and hooked it up to my code which
hopefully runs without causing any errors... can't really test it though
without a cache to delete.