The rpm -e command erases an installed package. The package name given must match that listed in the rpm -qa command because the version of the package is important:
[root@bigboy tmp]# rpm -e package-name
Python SQL Java php Perl game development web development internet *nix graphics hardware telecommunications C++ Flash Active Directory Windows