February 2013
Intermediate to advanced
304 pages
8h 26m
English
Scenario/Problem: You need to remove a solution from the SharePoint farm.
Solution: Use the Remove-SPSolution cmdlet with a solution variable.
The Remove-SPSolution cmdlet enables you to remove a specific solution from the current farm. Use this in conjunction with the Get-SPSolution cmdlet (explained in a previous section), as shown in Listing 9.9.
Listing 9.9. Sample Configuration Script for Removing a Solution
$solution = Get-SPSolution-Identity c0e31dec-294d-4f2d-9ae4-f2e637c766bdRemove-SPSolution $solution
Note
You may not remove a solution that has been deployed. You must first retract the solution and then perform the removal operation.
Read now
Unlock full access