remove repository ubuntu apt code example
Example 1: how to remove an apt repository
sudo add-apt-repository --remove ppa:whatever/ppa
# or
sudo apt-add-repository --remove 'deb some/repo your_distro main'
Example 2: add-apt-repository remove
sudo add-apt-repository -r {package-name}
Example 3: how to remove apt repository ubuntu
1. Go to: 'Software & update" > "other software"
2. Uncheck the repo you do not want to use