Remove unused paths