All Products
Search
Document Center

ApsaraVideo VOD:DeleteMezzanines

Last Updated:Mar 03, 2024

Deletes one or more source files at a time.

Operation description

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

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

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
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
VideoIdsstringYes

The IDs of audio or video files whose source files that you want to delete. You can specify up to 20 IDs. Separate multiple IDs with commas (,). You can use one of the following methods to obtain the ID:

  • After you upload a video in the ApsaraVideo VOD console, you can log on to the ApsaraVideo VOD console and choose Media Files > Audio/Video to view the ID of the video.
  • Obtain the value of VideoId from the response to the CreateUploadVideo operation that you called to obtain the upload URL and credential.
  • Obtain the value of VideoId from the response to the SearchMedia operation that you called to query media information after the audio or video file is uploaded.
23ab850b4f654b6e91d24d8157****,93ab850b4f6f4b6e91d24d81d4****
ForcebooleanNo

Specifies whether to forcibly delete the source file. Valid values:

  • false (default)
  • true
Note If a video is uploaded without transcoding or is asynchronously transcoded, the source file of the video is used for original-quality playback. By default, the source 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 results.

RequestIdstring

The ID of the request.

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

The IDs of the audio or video files whose source files cannot be deleted.

Note In most cases, source files cannot be deleted if they are used for original-quality playback or you do not have required permissions to delete them. For more information, see Overview .
string

The ID of the audio or video file whose source file cannot be deleted.

Note In most cases, source files cannot be deleted if they are used for original-quality playback or you do not have required permissions to delete them. For more information, see Overview . The source file of the video is used for original-quality playback if a video is uploaded without transcoding or is asynchronously transcoded.
23ab850b4f6f44b6e91d24d8157****
NonExistVideoIdsarray

The IDs of the audio or video files that do not exist.

string

The ID of the audio or video file that does 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.