Share via


JobStep.DeleteLogs Method

Include Protected Members
Include Inherited Members

Deletes job step log files.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public method DeleteLogs(DateTime) Deletes job step log files that are older than the specified date.
Public method DeleteLogs(Int32) Deletes job step log files that have log numbers lower than the specified value.

Top

Remarks

This method was introduced in SQL Server 2005.

Examples

Scheduling Automatic Administrative Tasks in SQL Server Agent

See Also

Reference

JobStep Class

Microsoft.SqlServer.Management.Smo.Agent Namespace

Other Resources

Automated Administration Tasks (SQL Server Agent)

sp_delete_jobsteplog (Transact-SQL)