How to delete a timer job definition


If you want to delete a Sharepoint Timer Job Definitions follow these steps:

  1. Get the GUID of the timer job definition with the following cmdlet:
    get-sptimerjob | sort-object -property Name | ft Name, Id

  2. stsadm.exe -o deleteconfigurationobject -id <GUID>

Comments (9)
  1. Anonymous says:

    Check if just the statement

    Get-SPTimerJob jobName -WebApplication webApplicationName

    will return results. I think you might have any typo in your jobName or webapp name and thus will not get any results.

  2. Anonymous says:

    ms-okoestner, it worked pretty well. thanks.

  3. Anonymous says:

    yes you can delete/deactivate the timerjob/feature using jobname.delete() inside the Feature dactivation method of timerjob eventreceiver.

  4. BertFW says:

    Incorrect. Use: stsadm -o deletessptimerjob

  5. Thomas Trung Vo says:

    Simle way to make a Timer Job Feature for SharePoint 2010 / Cách tạo một tính năng chạy theo lịch trình cho SharePoint 2010…/simle-way-to-make-timer-job-feature-for.html

  6. ML49448 says:

    Thanks, saved my hide 🙂

  7. Stefan Illner says:

    My proposal:

    $job = Get-SPTimerJob jobName -WebApplication webApplicationName


  8. Soumyadev Bhattacharyya says:

    Job.Delete() method is throwing error while trying to remove the timer job from feature deactivating event.

    Error that is coming is "object reference not set to an instance of an object"

    stack trace in sharepoint log shows. Any idea on this. Please advice.

    I was able to delete the job using powershel script as mentioned by Stefan Illner

      at Microsoft.SharePoint.Utilities.SPSqlCommand.get_ReturnValue()

      at Microsoft.SharePoint.Administration.SPConfigurationDatabase.DeleteObject(Guid id)

      at Microsoft.SharePoint.Administration.SPConfigurationDatabase.DeleteObject(SPPersistedObject obj)

      at Microsoft.SharePoint.Administration.SPPersistedObject.Delete()

      at Microsoft.SharePoint.Administration.SPJobDefinition.Delete()

      at KPMG.ITSGlobal.MySite.ProfileTranslation.KPMGItsGlobalMySiteEventReceiver.<>c__DisplayClass2.<DeleteMySiteProfileTranslationJob>b__0()

      at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass5.<RunWithElevatedPrivileges>b__3()

      at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)

  9. Soumyadev Bhattacharyya says:

    Hi  ms-okoestner,

    I have checked that the name is fine and there is no Typo error.

    Again I'm abale to delete the Job using powershell script but not through code when deactivating a feature on site collection level.

Comments are closed.

Skip to main content