Deactivate/Delete Site Template through Power shell

9 comments
Hi All,

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 will get the below screen when you clicks on deactivate solution, where you will not find any thing to deactivate/remove the solution.



you can do 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"

Remove Solution:


Remove-SPUserSolution -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



Related Post

9 comments:

  1. cPanel License is a popular web hosting control panel that simplifies the process of website and server management.

    ReplyDelete