DELETE FROM ops.scheduler_job_triggers
WHERE job_key = 'scheduler_run_retention';

DELETE FROM ops.scheduler_job_runs
WHERE job_key = 'scheduler_run_retention';

DELETE FROM ops.scheduler_jobs
WHERE job_key = 'scheduler_run_retention';

DROP INDEX IF EXISTS ops.idx_scheduler_job_triggers_finished_requested;
DROP INDEX IF EXISTS ops.idx_scheduler_job_triggers_run_id;
