DeleteProgramCommand

Deletes a program within a channel. For information about programs, see Working with programs  in the MediaTailor User Guide.

Example Syntax

Use a bare-bones client and the command you need to make an API call.

import { MediaTailorClient, DeleteProgramCommand } from "@aws-sdk/client-mediatailor"; // ES Modules import
// const { MediaTailorClient, DeleteProgramCommand } = require("@aws-sdk/client-mediatailor"); // CommonJS import
const client = new MediaTailorClient(config);
const input = { // DeleteProgramRequest
  ChannelName: "STRING_VALUE", // required
  ProgramName: "STRING_VALUE", // required
};
const command = new DeleteProgramCommand(input);
const response = await client.send(command);
// {};

DeleteProgramCommand Input

See DeleteProgramCommandInput for more details

Parameter
Type
Description
ChannelName
Required
string | undefined

The name of the channel.

ProgramName
Required
string | undefined

The name of the program.

DeleteProgramCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.

Throws

Name
Fault
Details
MediaTailorServiceException
Base exception class for all service exceptions from MediaTailor service.