remove a 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: how to remove git repository from a project
rm -rf .git
Example 4: add-apt-repository remove
sudo add-apt-repository -r {package-name}
Example 5: how to delete repository in github
#step by step Process
>> Login github
>> Profile # right side of the page profile icon
>> Your repositories
>> Select repositories
>> Goto Settings # repository level settings
>> Delete this repository
>> Please type <repository name> to confirm.