Dnn.Platform icon indicating copy to clipboard operation
Dnn.Platform copied to clipboard

Add an uninstall Interface to run custom module code

Open valadas opened this issue 7 years ago • 1 comments

Description

Some modules create content that is not removable with just an sql script. For instance a media gallery module could create a folder on the filesystem to hold the various images sizes caches, it may also export large files, or templates that are useless without the module being on the site.

Current result

Currently, the IUpgradeable interface allows for a module developer to run custom code on module installation. For when the module is uninstalled, the only thing a developer can run is an uninstall sql script.

Expected result

Developers could have an IUninstallable interface that they could implement in a similar way to the IUpgradeable interface. But this new interface should also pass wether the user ticked "Delete Files" on the uninstall screen. image

Affected version

  • [x] 9.2
  • [x] 9.1.1
  • [X] 9.1
  • [X] 9.0 All versions, this never existed.

Affected browser

All (Not browser related)

valadas avatar Jul 16 '18 04:07 valadas

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 21 '19 22:10 stale[bot]