SPSolution.Retract method (DateTime)

Creates a timer job to retract the specified solution at a particular time.

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

public void Retract(
	DateTime dt


Type: System.DateTime

A DateTime object that indicates when to run the timer job.

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.

If you are running multiple jobs and the order in which they run is important, make sure that the specified times are sufficient for each job to complete before the next job is submitted. When multiple jobs are in the pool, the order in which they run is unpredictable.

To retract a language package, see SPSolutionLanguagePack.