Remove logs, and ignore logs and cache directories.