Share via


JobServer.PurgeJobHistory Method

Removes all logged records of SQL Server Agent jobs.

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

Syntax

'Declaration
Public Sub PurgeJobHistory
'Usage
Dim instance As JobServer

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