ubuntu remove repository 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: apt remove ppa
sudo add-apt-repository --remove ppa:dhor/myway
Example 3: delete git repository command line
rm -rf .git
Example 4: how to remove git repository from a project
rm -rf .git
Example 5: delete ppa repository ubuntu
sudo add-apt-repository --remove ppa:PPA_Name/ppa