6

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

14

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()
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...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.