Remove a Sandboxed Solution from a Site Collection


Scenario/Problem: You need to remove a sandboxed solution from a site collection.


Solution: Use the Remove-SPUserSolution cmdlet with a sandboxed solution variable.

The Remove-SPUserSolution cmdlet enables you to remove a specific sandboxed solution from a specified site collection. Use this in conjunction with the Get-SPUserSolution cmdlet (explained in a previous section), as shown in Listing 9.16.

Listing 9.16. Sample Configuration Script for Removing a Sandboxed Solution


$userSolution = Get-SPUserSolution
-Identity c0e31dec-294d-4f2d-9ae4-f2e637c766bd
Remove-SPUserSolution $userSolution
-site "http://intranet.sp2013.com/sites/UserSC"



Note

You may not remove a solution that has been deployed. You must first retract the solution and then perform the removal operation.


..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.227.161.225