How to: Automatically Delete a Job (SQL Server Management Studio)

This topic describes how to configure Microsoft SQL Server Agent to automatically delete jobs when they succeed, fail, or complete.

  1. In Object Explorer, connect to an instance of the SQL Server Database Engine, and then expand that instance.

  2. Expand SQL Server Agent, expand Jobs, right-click the job you want to edit, and then click Properties.

  3. Select the Notifications page.

  4. Check Automatically delete job, and choose one of the following:

    • Click When the job succeeds to delete the job status when it has completed successfully.
    • Click When the job fails to delete the job when it has completed unsuccessfully.
    • Click When the job completes to delete the job regardless of completion status.