All Products
Search
Document Center

ApsaraVideo VOD:DeleteMezzanines

Last Updated:Jun 01, 2023

Deletes one or more mezzanine files at a time.

Operation Description

All media processing operations in ApsaraVideo VOD, such as transcoding, snapshot capture, and content moderation, are performed on mezzanine files. If you delete the mezzanine files, you cannot perform follow-up media processing operations. Exercise caution when you call this operation.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
vod:DeleteMezzaninesWrite
  • VOD
    acs:vod:*:{#accountId}:*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
VideoIdsstringYes

The list of video IDs. A maximum of 20 video IDs can be specified at a time. Separate multiple IDs with commas (,).

23ab850b4f654b6e91d24d8157****,93ab850b4f6f4b6e91d24d81d4****
ForcebooleanNo

Specifies whether to forcibly delete the mezzanine file. Default value: false.

NoteIf a video is delivered without transcoding or is asynchronously transcoded, the mezzanine file of the video is used for original-quality playback. By default, the mezzanine file of the video cannot be deleted. To forcibly delete the mezzanine file, set this parameter to true.
false

Response parameters

ParameterTypeDescriptionExample
object

The returned data.

RequestIdstring

The ID of the request.

25818875-5F78-4AF6-D7393642CA58****
UnRemoveableVideoIdsarray

The IDs of the videos whose mezzanine files cannot be deleted.

NoteGenerally, mezzanine files cannot be deleted if they are used for original-quality playback or you do not have required permissions to delete them.
string

The IDs of the videos whose mezzanine files cannot be deleted.

NoteGenerally, mezzanine files cannot be deleted if they are used for original-quality playback or you do not have required permissions to delete them.
23ab850b4f6f44b6e91d24d8157****
NonExistVideoIdsarray

The IDs of the videos that do not exist.

string

The IDs of the videos that do not exist.

93ab850b4f6f4b6e91d24d81d4****

Examples

Sample success responses

JSONformat

{
  "RequestId": "25818875-5F78-4AF6-D7393642CA58****",
  "UnRemoveableVideoIds": [
    "23ab850b4f6f44b6e91d24d8157****"
  ],
  "NonExistVideoIds": [
    "93ab850b4f6f4b6e91d24d81d4****"
  ]
}

Error codes

For a list of error codes, visit the Service error codes.