Make an feature to uninstall a plugin. Run an uninstall function from the configure component and remove the version file. Also should check for other plugins that have dependencies on the plugin being uninstalled.