This documentation is archived and is not being maintained.

SPSolution.RetractLocal Method

Windows SharePoint Services 3

Retracts the solution from all web applications on the local server.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public void RetractLocal()

When a solution is retracted, all files for that solution are retracted, even if another solution points to the same file. This can be avoided by ensuring that each solution points to a unique set of files.

By default, no application pools are reset after deploying or retracting a solution using the object model. To reset the application pool manually, you can stop and restart the application pool for the web application to which you are deploying or retracting the solution.

To retract a language package, see SPSolutionLanguagePack.