Delete add-ons

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:

  1. Open the project whose add-on you want to delete in Visual Studio.
  2. Navigate to TOOLS » Library Package Manager » Package Manager Settings » Package Sources.
  3. 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 server.
  4. Navigate to TOOLS » Library Package Manager » Package Manager Console.
  5. In Package source, choose the source that you have added.
  6. In the command line, enter Uninstall-Package <your add-on name>
    For example, enter Uninstall-Package abc
  7. Build your solution.
  8. 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 - addons_registry.sf.

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.

Want to learn more?

Sign up for our free beginner training. Boost your credentials through advanced courses and certification.
Register for Sitefinity training and certification.

Was this article helpful?