Ubuntu Linux ppa-purge command to delete PPAs with ease of use

Fig.02: Delete PPAs using ppa-purge script

Fig.02: Delete PPAs using ppa-purge script

Use the ppa-purge command on Ubuntu Linux to delete PPAs with ease of use:

Install it

$ sudo apt install ppa-purge

How can PPAs be removed on Ubuntu?

Use it as follows to remove a PPA named ppa:saiarcot895/myppa:
$ sudo ppa-purge ppa:saiarcot895/myppa

Sample outputs:

Updating packages lists
PPA to be removed: saiarcot895 myppa
Package revert list generated:
 apt-fast-

Disabling saiarcot895 PPA from 
/etc/apt/sources.list.d/saiarcot895-ubuntu-myppa-xenial.list
Updating packages lists
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  aria2 libc-ares2 libssh2-1
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  apt-fast
0 upgraded, 0 newly installed, 1 to remove and 4 not upgraded.
After this operation, 120 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 92791 files and directories currently installed.)
Removing apt-fast (1.8.3~144+git3a6bd77-0ubuntu1~ppa4~xenial1) ...
Processing triggers for man-db (2.7.5-1) ...
PPA purged successfully

Finally run apt autoremove to get rid of unwanted packages and libs too:
$ sudo apt-get --purge autoremove

Examples and usage: Ubuntu Linux Remove/Delete PPAs apt-get command