6

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

2 Answers 2

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()
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 and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.