Remove PPA Repositories Via Command Line

You probably know that starting with Ubuntu Karmic, you can add a Launchpad PPA using a simple command. Here is a script which will remove the PPA repository, removes the packages you installed from that PPA and install the packages from the official Ubuntu repositories.