DeleteSchedule
Source:
src/AWS/Scheduler/DeleteSchedule.ts
Runtime binding for scheduler:DeleteSchedule.
Pairs with CreateSchedule for the dynamic-scheduling pattern: a
deployed Lambda deletes schedules it minted at runtime (cancel a reminder,
clean up a completed one-shot). Optionally scoped to a ScheduleGroup;
without one it covers the default group.
Deleting Schedules At Runtime
Section titled “Deleting Schedules At Runtime”Cancel A Reminder
const deleteSchedule = yield* AWS.Scheduler.DeleteSchedule();
// runtimeyield* deleteSchedule({ Name: `reminder-${userId}` }).pipe( // already gone — cancellation is idempotent Effect.catchTag("ResourceNotFoundException", () => Effect.void),);Scope Deletion To A Schedule Group
const deleteSchedule = yield* AWS.Scheduler.DeleteSchedule(group);