OrchardCore icon indicating copy to clipboard operation
OrchardCore copied to clipboard

Functionality missing for uninstalling Modules

Open scleaver opened this issue 5 years ago • 1 comments

There is currently no way both programmatically and via the UI to uninstall a module. When you create a ContentType or add Content Parts via a module, disabling the module does not remove them from the UI.

Here is the scenario: I have a bunch of tenants that are hosted on Orchard Core. I have created a Module called Locations which adds an AddressPart (for containing addresses) and a ContentType called Locations (added by migrations.cs) and associated methods for querying and displaying Locations.

The tenant decides the no longer wants the Locations functionality as part of their subscription. Disabling it via the Module UI does not remove the AddressPart and the ContentType from the tenant. What I am after is a method that could be utilized to perform cleanup when a module is no longer needed.

scleaver avatar Oct 23 '18 08:10 scleaver