Skip to content

DeleteProgram

Source: src/AWS/MediaTailor/DeleteProgram.ts

Runtime binding for mediatailor:DeleteProgram — remove a scheduled program from a channel-assembly channel.

Channel/program names are runtime parameters, so the binding is account-level and grants mediatailor:DeleteProgram on *. Provide the implementation with Effect.provide(AWS.MediaTailor.DeleteProgramHttp).

const deleteProgram = yield* AWS.MediaTailor.DeleteProgram();
yield* deleteProgram({
ChannelName: "my-channel",
ProgramName: `episode-${id}`,
});