Is there a PowerShell cmdlet to delete a Timer Job in SharePoint 2010?
Asked
Active
Viewed 1.1k times
2 Answers
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