AWS Elemental MediaLive
User Guide

Deleting Actions from the Schedule(AWS CLI)

You can use the AWS CLI to delete actions that you previously created in the schedule. You can delete an action when the channel is running or when it is idle.

The action that you delete must have a UTC start time or a follow start time (for input switches) that is at least 15 seconds in the future. (In other words, it must not be already received in the channel.) After that cutoff, AWS Elemental MediaLive rejects the delete request.

You can delete any number of actions in one request, or any combination of types of actions in one request. For example, you can mix the deletion of SCTE-35 message actions and image overlay actions. Keep in mind that if you delete several actions in one request and one of the delete requests fails (usually because the start time isn't sufficiently in the future), then they will all fail.

You can also submit requests that combine deleting and creating actions. For more information, see Combining Create and Delete (AWS CLI) .

The general procedure is the same to delete any type of action.

To delete actions (AWS CLI)

  1. On the command line, enter this command:

    aws medialive batch-update-schedule --channel-id value --deletes delete content

  2. In delete content, include the list of actions to delete by entering an array of ActionNames. You can obtain these ActionNames using the DescribeChannel command (see Viewing the Schedule (AWS CLI).

    For details on forming the command, see AWS CLI Command Reference. For information about the meaning and values for the fields, see AWS Elemental MediaLive API Reference.

  3. You can include create requests in this command. For more information, see Combining Create and Delete (AWS CLI) .

  4. To submit the command, press Enter. The response appears on the screen. The response repeats the data from the request.

JSON Code for Deleting an Action

This JSON code goes in the --deletes parameter of the command. **is this correct shouldn't it have a SCHEDULEACTIONS?

"Deletes": { "ActionNames": [ "" ]

Example

This example of a request deletes the three actions identified by the ActionNames that were assigned when you created the names:

"ActionNames": [ "stop_overlay_33" "adavail_3711" "end_adavail_3711" ]