As soon as a plugin is removed from the plugin folder or a new version is added, then the old plugin should be removed from the plugin registry and an event has to be fired for the change. For this, a new event or a new flag will be needed in the Observer.
As soon as a plugin is removed from the plugin folder or a new version is added, then the old plugin should be removed from the plugin registry and an event has to be fired for the change. For this, a new event or a new flag will be needed in the Observer.