Linux: Remove installed RPM packages manually

Warning: Use of undefined constant user_level - assumed 'user_level' (this will throw an Error in a future version of PHP) in /homepages/3/d98111892/htdocs/insanelabs/htdocs/wp-content/plugins/ultimate-google-analytics/ultimate_ga.php on line 524

Sometimes you screw up an application and are unable to use rpm -e to remove them from your system. Here is how you go about doing that:

To find installed RPM packages:
rpm -qa | grep <string>
To remove:
rpm -e --nodeps --allmatches <package name>