Uninstall Sitecore 9.x: Remove Sitecore Certificates

With Sitecore 9.2 and above, Uninstalling Sitecore has never been much easier. The Uninstall-SitecoreConfiguration SIF PS Module Commandlet does a clean uninstall of the respective configurations installed on your workstation/server.

Here is the Command line for your reference:

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

This comes up as a commented line in the respective SP Configuration Install PS1 script in the corresponding Installation Package. ex. XP0-SingleDeveloper.ps1

During the uninstall process, you could see the following activities being performed:

  1. Stop Websites
  2. Stop App Pool
  3. Remove App Pool
  4. Remove Website
  5. Remove Content (if any)
  6. Remove Host Headers
  7. Remove Databases
  8. Remove Solr Cores
  9. Stop Windows Service – Index Worker
  10. Stop Windows Service – Marketing Automation Service
  11. Stop Windows Service – Processing Engine Service
  12. Remove Windows Service – Index Worker
  13. Remove Windows Service – Marketing Automation Service
  14. Remove Windows Service – Processing Engine Service
  15. Remove Registry Entries

Note: Above steps are repeated for Sitecore, XConnect and Identity Server instances.

However, during this uninstall operation, the Certificates created still remain in your Windows Certificate Store. To uninstall these certificates, you can perform the following operation:

  1. Open up Microsoft Management Console (MMC)
  2. File –> Add/Remove Snap-in.
  3. Select “Certificates” –> Next –> “Computer Account” –> Next –> Finish –> OK
  4. Navigate to “Personal” –> “Certificates” folder and observe the Sitecore Certificates as shown below:screenshot20-20sitecore20certificatesYou can select all Sitecore-specific certificates pertaining to the instance being uninstalled, right-click and delete.

Here is the reference of all Certificate Paths:


PFX Certificate files are  stored in the following path:
C:\Sitecore (defined by the install configurations path)


Now you have a clean Sitecore 9.2+ uninstall!

Hope this helps!

Feel free to leave a reply here...

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: