The method to remove SpamAssassin depends on how it was installed. If SpamAssassin is installed using RPM, for example, then it should be uninstalled in the same manner. Failing to do this can cause problems either immediately or at some time in the future.
If SpamAssassin was installed from source, either using the CPAN module or manually, there is no simple command to uninstall it.
When Perl installs a module, it creates a list of files that are installed as part of the module. This packlist, as it is called, is usually located at
<arch> should be replaced with the appropriate values, for example
5.8.2 for ...