ApsaraVideo VOD can generate multiple types of media files and allows you to delete media files at different granularities. You can delete media files by using the ApsaraVideo VOD console, API, or SDK. This topic describes the methods and procedures that you can use to delete media files in ApsaraVideo VOD.
Introduction
Media files cannot be recovered once deleted. Exercise caution when you delete media files.
Delete all audio or video files: delete the source files, transcoded streams, thumbnails, and image sprites.
Delete audio or video streams: delete the transcoded streams in specific definitions.
Delete source files: delete the audio or video source files that are uploaded.
Delete image files: After you delete the image files, the URLs of the thumbnails, snapshots, and watermarks become inaccessible.
When you delete files from Object Storage Service (OSS), the files are deleted but the media asset information is retained. When you delete files stored in ApsaraVideo VOD, the files and the media asset information are deleted.
By default, audio or video source files that are uploaded without transcoding cannot be deleted. This is because the source files are used for original-quality playback. If you want to delete the source files, set Force to true when you call the delete operation.
All delete operations are performed by users.
Delete media files by using the ApsaraVideo VOD console
Log on to the ApsaraVideo VOD console. In the left-side navigation pane, click Audio/Video, Image, or Short Video Material under Media Files based on the type of file that you want to delete. On the page that appears, find the file that you want to delete and click Delete in the Actions column. For more information, see Media asset management.
Delete media files by using the ApsaraVideo VOD API or SDK
You can use API operations or SDKs to delete all audio or video files, audio or video streams, audio or video source files, and image files.
The following table describes the types of files that can be deleted by calling specific API operations.
File type | Description | References |
Audio or video | Deletes all audio or video files including the source files, transcoded streams, and thumbnails. You can delete multiple files at a time. | |
Audio or video streams | Deletes video or audio streams and the media asset information. You can delete multiple media streams at a time. | |
Source files | Deletes source files and file information. | |
Image files | Deletes uploaded images and automatic snapshots of videos. |
Call methods:
We recommend that you use a server SDK to obtain media asset information by calling the API operations. This method is simpler and more efficient. For more information, see Usage notes. For more information about API operations, see the "
SDK example
" section of API references.For more information about how to generate HTTP or HTTPS requests, see Request syntax.