To delete an add-on, you uninstall the NuGet package, containing the add-on. You use the Package Management Console of Visual Studio in the following way:
- Open the project whose add-on you want to delete in Visual Studio.
- Navigate to TOOLS » Library Package Manager » Package Manager Settings » Package Sources.
- Add as Source the folder or the server where your add-on’s
.nupkg file is located.
The add-on NuGet package can be located on your machine or on any server, for example, you can upload the package to nugget.org server.
- Navigate to TOOLS » Library Package Manager » Package Manager Console.
- In Package source, choose the source that you have added.
- In the command line, enter Uninstall-Package <your add-on name>
For example, enter Uninstall-Package abc
- Build your solution.
- Restart Sitefinity CMS.
RESULT: When Sitefinity CMS starts, it detects the missing add-on and removes all changes introduced by it, including all content, custom fields, modules, configurations, widget templates, etc.
Transfer the changes to the next environment
To transfer the changes to the next environment from the Continuous delivery process, you transfer the
~\App_Data\Sitefinity\Addons folder to the next environments. This folder contains all installed add-ons and a registry for them -
IMPORTANT: Always deploy the registry file as well. If the registry file is not deployed, when Sitefinity starts in the next environment it will try to automatically generate a new registry based on the existing add-ons. This will lead to mismatch of the Development environment registry and the next environment registry. As a result, the deletion of an add-on will not be deployed.