Finished changes for deleting cache

What error is returned here? We should explicitly check for it.