delete log and cache file