How to Delete a Timer Job in SharePoint using PowerShell?

But wait! why do we delete a Timer Job in SharePoint? Well, because:

  • Your custom timer job may be in stuck state
  • You may have orphaned Timer jobs (Timer job without “Server” from Timer job status page in Central Admin)
  • Your custom timer job may have created more than one instances (duplicate timer job)

In my case, a custom timer job deployed in our SharePoint 2013 environment had a bug and left two instances of the same timer job. so we wanted to delete that.

Delete a Custom Timer Job in SharePoint

There is no Central Admin UI to delete timer jobs in SharePoint. So, lets seek help from PowerShell to delete a timer job in SharePoint.

how to delete sharepoint timer job using powershell

How to Delete a Timer Job in SharePoint using PowerShell?

  • Step 1: Obtain the GUID of your target timer job to delete
    Get-SPTimerJob | where { $ -like "YOUR-Timer-Job-Name" } | Format-Table  -autosize -Property LastRunTime,id,name,DisplayName,Status
  • Step 2: Get the timer job and delete
    Once you obtained the GUID of your timer job to delete, run this PowerShell cmdlet:
    $Timerjob = Get-SPTimerJob -id <Timer Job's GUID> $Timerjob.Delete()

This PowerShell script removes the given SharePoint timer job!

Do not delete any OOTB timer job unless you are very sure what you are doing! If you delete any SharePoint’s critical timer jobs, You’ll end up re-provisioning SharePoint on the server again.

Lesson Learned: Developers – Make sure your Feature deactivation module contains code to delete your custom timer job in SharePoint.

Salaudeen Rajack

Salaudeen Rajack - Information Technology Expert with Two-decades of hands-on experience, specializing in SharePoint, PowerShell, Microsoft 365, and related products. He has held various positions including SharePoint Architect, Administrator, Developer and consultant, has helped many organizations to implement and optimize SharePoint solutions. Known for his deep technical expertise, He's passionate about sharing the knowledge and insights to help others, through the real-world articles!

2 thoughts on “How to Delete a Timer Job in SharePoint using PowerShell?

  • How to find the GUID of the timer job?

    • E.g. use: Get-SPTimerJob | where { $_.Title -like “Audit Log Trimming” } | Select ID, WebApplication, Service


Leave a Reply

Your email address will not be published. Required fields are marked *