remove cache and log