So you want to uninstall a program on Ubuntu? Or should I say you want to remove a package. Below command will help you do that.
sudo apt-get –purge autoremove <packagename>
<packagename> should be the name of your package, needless to say that package must be already installed on your system.
Example: sudo apt-get –purge autoremove ubuntu-restricted-extras
Note: autoremove also removes the dependencies that <packagename> depends on. So say I install package A, which depends on package B. Then I remove A, autoremove will remove B too. So if you want to keep B, just skip “autoremove” from the command.