how to remove an apt repository

Shell
sudo add-apt-repository --remove ppa:whatever/ppa
# or
sudo apt-add-repository --remove 'deb some/repo your_distro main'
Source

Also in Shell: