Remove invalid repositories.