Remove unused paths.