remove local repositories and use locations from API