We currently clean up the filesystem and run through the 'uninstall' method from the plugin in point during the uninstall process. We don't however, ever, unload the module code from memory and this may result in plack environments leaking memory.
(In reply to Martin Renvoize from comment #0) > We currently clean up the filesystem and run through the 'uninstall' method > from the plugin in point during the uninstall process. We don't however, > ever, unload the module code from memory and this may result in plack > environments leaking memory. I don't think that this is possible in Perl though. In theory there's some things that can be down to unload the module (https://metacpan.org/pod/Class::Unload) but I don't know that it actually frees up any memory. It would be interesting to do some experiments with it though... Although it runs into the same problem as plugin upgrades. We'd need to signal it to all Starman workers.