Uninstall a Sitecore Single Developer topology

Version: 10.5

You can also use SIF to uninstall the SIF configuration files and the Sitecore XM Single Developer or Sitecore XP Single Developer topologies.

Uninstall a SIF configuration file

You can use SIF to uninstall a SIF configuration file on a local server.

To uninstall a SIF configuration file on a local instance:

  1. Launch PowerShell as an administrator.

  2. Run the Uninstall-SitecoreConfiguration cmdlet, and specify the path to your SIF configuration file.

    For example, using the sitecore-XP0.json file:

    Uninstall-SitecoreConfiguration –Path <configurationpath>\sitecore-XP0.json

    Alternatively, you can pass in the parameters declared in the SIF configuration files by prefixing their name with a dash “ -" in the command line.

    For example:

    Uninstall-SitecoreConfiguration -Path <configurationpath>\sitecore-XP0.json -SqlDbPrefix SC

    In a PowerShell command line, you can pass additional parameters to control the uninstall process.

    For example, running the Verbose cmdlet increases the amount of information that is logged, and the -Skip <taskname> cmdlet skips one or more tasks.

To correctly uninstall a SIF configuration, you must pass the same parameters that were used during the installation.

The uninstallation is performed by a separate list of tasks within the configuration file. For more information, see the SIF documentation.

Uninstall the Sitecore XP Single Developer topology

To uninstall the Sitecore XP Single Developer topology:

  1. In the XP0-SingleDeveloper.ps1 script, change the Install-SitecoreConfiguration cmdlet to Uninstall-SitecoreConfiguration.

    For example, change

    Install-SitecoreConfiguration @singleDeveloperParams *>&1 | Tee-Object XP0-SingleDeveloper.log

    to

    Uninstall-SitecoreConfiguration @singleDeveloperParams *>&1 | Tee-Object XP0-SingleDeveloper-Uninstall.log

    The example scripts contain this line already. You only need to uncomment and comment out the appropriate lines.

  2. Run the script and the topology is removed.

If you have suggestions for improving this article, let us know!