dbatools is a free PowerShell module with over 300 SQL Server administration, best practice and migration commands included.

Please note that documentation and command names may be out of date while we work furiously towards 1.0


Remove-DbaAgentJobSchedule removes a job schedule in the SQL Server Agent.




Remove the schedule weekly.

Remove-DbaAgentSchedule -SqlInstance sql1 -Schedule weekly

Remove the schedule weekly from the job even if the schedule is being used by another job.

Remove-DbaAgentSchedule -SqlInstance sql1 -Schedule weekly -Force

Remove multiple schedule.

Remove-DbaAgentSchedule -SqlInstance sql1 -Schedule daily, weekly

Remove the schedule on multiple servers for multiple schedules.

Remove-DbaAgentSchedule -SqlInstance sql1, sql2, sql3 -Schedule daily, weekly

Remove the schedule on multiple servers using pipe line.

sql1, sql2, sql3 | Remove-DbaAgentSchedule -Schedule daily, weekly


This command was created by Sander Stad. You can find Sander on Twitter and his blog.


From PowerShell, execute Get-Help Remove-DbaAgentSchedule -Detailed for more information on this function.

Source Code

Want to see the source code? View Remove-DbaAgentSchedule.ps1 on GitHub

Related commands