6

Is there a PowerShell cmdlet to delete a Timer Job in SharePoint 2010?

Eric Alexander
  • 43,293
  • 10
  • 53
  • 93
Nikhil J
  • 4,934
  • 10
  • 46
  • 91

2 Answers2

15

I don't have a spare timer job to test this with currently, but this should work, replacing mysitecleanup with the name of your timer job.

$jobToDelete = Get-SPTimerJob | ? { $_.name -eq "mysitecleanup" }
$jobToDelete.Delete()
boflynn
  • 423
  • 2
  • 11
0

You can use the Get-SPTimerJob cmdlet, and possibly delete from there. Check out Delete timer jobs for a trick on removing a job...

David Lozzi
  • 7,372
  • 5
  • 29
  • 50