Generally, there is no special βdeleteβ mechanism that comes with CPAN modules. But you can try make uninstall in the source directory into which the module is unpacked (this often happens under /root/.cpan or ~/.cpan ), since some packages contain this directive in their installation script. (However, since you installed the modules in the local (non-root) directory of the library, you also have the option of destroying this entire directory and reinstalling everything else that you want to save.)
In most cases, you can just get away with deleting the A/B.pm (for the A::B module) from your perllib - which, at least, makes the module unusable. Most modules also contain a list of files to install (called the "manifest"), so if you can find this, you will know which files you can delete.
However, none of these approaches will address any modules that have been installed as dependencies. There is no good (automated) way to find out if something depends on this module, so you will have to remove it manually as soon as you make sure.
The difficulty of removing modules is one of the reasons many Perl developers want to use version control to track installations β for example, see brian d foy's article as an addition to his upcoming book , which discusses the use of git for package management.
Ether Apr 13 2018-10-12T00: 00Z
source share