removing logs and cache directories