Delete Files

Last update:2025-08-18 15:32:07

This interface allows you to delete specified resource files from the object storage platform, which is considered a high-risk operation. Special Note:

  1. Deleted files cannot be recovered. Please proceed with caution.
  2. If the m3u8 file is deleted, the ts file will not be deleted at the same time. If you need to do associated deletion, you can use Delete m3u8 File Interface

Request Description

HTTP Request Structure

POST /delete/{param1}
Host: < MgrDomain>
Authorization: < AccessToken>

As for {param1} generation rules, refer to the EncodeEntryURI Format

Header Description

Parameter Required Description
Host Yes Management domain name , which can be obtained on the Bucket Overview interface of the Console
Authorization Yes Management Credential

Response Description

  • If a request is successful, a JSON string of the following content will be returned:
{   
        "code": "200",
        "message": "OK",
}
Field name Required Description
code Yes HTTP request response code. Refer to the HTTP Response Status Codes
message Yes Lists prompt messages upon bucket failure.
  • If a request fails, a JSON character string of the following content will be returned:
{
        "code":     "<code string>",
        "message":  "<ErrMsg string>"
}
Field name Required Description
code Yes HTTP request response code. Refer to the HTTP Response Status Codes
message Yes Lists prompt messages upon bucket failure.

Example

curl -v -X POST -H "Authorization:86622e227a50d49d858c2494a935bc2e4ac543a7:NjczY2ZmOTBmZDRjN2UxMGU5ODczM2NjMWY3YTRhYjc4YWZlODcxMw==" --url "http://mgrDomain/delete/aW1hZ2VzOkltYWdlLnBuZw=="
Is the content of this document helpful to you?
Yes
I have suggestion
Submitted successfully! Thank you very much for your feedback, we will continue to strive to do better!