The rpm -e command can be used to erase an installed RPM. The following example attempts to delete a RPM called codeina-0.10.1-5.fc8 .

[neo@techpulp ~]# rpm -e codeina-0.10.1-5.fc8
[neo@techpulp ~]#

If the RPM given is not an installed RPM, it shows an error message as shown below.

[neo@techpulp ~]# rpm -e abcd
error: package abcd is not installed
[neo@techpulp ~]#