All Products
Search
Document Center

ApsaraVideo VOD:DeleteMezzanines

Last Updated:Jul 19, 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

There is currently no authorization information disclosed in the API.

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.