I uninstall SharePoint 2013.

we have some package to install on web application it will be stored in 15 folder. so after installation i try to install our package but it showing following error.

enter image description here

Actually i want to remove following template eContracts from Central Admin.

How i can remove this. I tried to uninstall the package then also this error came.

I tried Powershell script also (stsadm -o deletetemplate -title eContracts) but is not removing.

Please someone help for this how i can remove this site template ?

Thank in advance. enter image description here


Generally most of the folks deactivate and delete the Site Template though SP OOB from the Solution Gallery. Some time you cannot do that ( don't know for the reasons:-).

You can remove the same by using Power shell. Below are the commands which are used to Deactivate and Remove the solution from the Gallery

Deactivate the Solution:

Uninstall-SPUserSolution -identity "Name Of the Solution.wsp" -Site "Path of the Site Collection"


Uninstall-SPSolution -identity "Name Of the Solution.wsp" -Site "Path of the Site Collection"

Remove Solution:

Remove-SPUserSolution -identity "Name Of the Solution.wsp" -Site "Path of the Site Collection"


Remove-SPSolution -identity "Name Of the Solution.wsp" -Site "Path of the Site Collection"


The above two commands will prompts for Confirmation , click Y and action will be done.


  • I already tried this but this not working. Error was came Cannot find an spsite object with Id or Url.
    – Elina
    May 12 '16 at 13:12
  • Check if the solution is available under Site Settings > Solutions in Central Admin?
    – Hardik
    May 12 '16 at 13:14
  • No the solution gallery was empty.
    – Elina
    May 12 '16 at 13:18
  • this happens when you remove the wsp before disabling the feature! you need to re-add the exact wsp's(correct version) disable them(feature) and then remove wsp in correct order(retract and then remove)!
    – Hardik
    May 12 '16 at 13:19
  • OR Simply navigate to Site Settings and under Galleries find the Site Template Gallery. You'll find the Site Template in there. Delete it.
    – Hardik
    May 12 '16 at 13:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.