Share via


Job.PurgeHistory Method

Removes system records maintaining execution history for the referenced job.

Namespace:  Microsoft.SqlServer.Management.Smo.Agent
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Sub PurgeHistory
'Usage
Dim instance As Job

instance.PurgeHistory()
public void PurgeHistory()
public:
void PurgeHistory()
member PurgeHistory : unit -> unit 
public function PurgeHistory()