Add delete option to cached tester

If -delete option is not given to the tester, it will not delete the
cache after uploading it.