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()

Examples

Scheduling Automatic Administrative Tasks in SQL Server Agent

See Also

Reference

JobServer Class

PurgeJobHistory Overload

Microsoft.SqlServer.Management.Smo.Agent Namespace

Other Resources

Automated Administration Tasks (SQL Server Agent)