In this blogs we will get the information how to uninstall the existing Sitecore XP and Commerce instance.
# How to uninstall the Sitecore Commerce or Sitecore XP.
Sitecore Commerce
To uninstall the Sitecore Commerce we have to change this below line in “Deploy-Sitecore-Commerce.ps1” .
![](https://sharesitecoreinfo.wordpress.com/wp-content/uploads/2021/06/image.png?w=1024)
Change the Install-SitecoreConfiguration cmdlet to Uninstall-SitecoreConfiguration. For example,
Change: Install-SitecoreConfiguration @deployCommerceParams -Verbose *>&1 | Tee-Object
“$XCSIFInstallRoot\XC-Install.log
To:
Uninstall-SitecoreConfiguration @deployCommerceParams -Verbose *>&1 | Tee-Object
“$XCSIFInstallRoot\XC-Uninstall.log
Sitecore XP
To uninstall the Sitecore 9-10 we have to change only single line in Powershell script.
comment the installation line and uncomment the Uninstall line in XP0-SingleDeveloper file.
![](https://sharesitecoreinfo.wordpress.com/wp-content/uploads/2021/06/image-1.png?w=1024)