Delete cache and log