Make sure global plugins are purged as well, fixes #3115