Delete Resource

Last update:2022-10-14 15:24:38

Description

This interface provides to delete the specified resource.

Note: 1. Files cannot be recovered after deletion, please operate with caution. 2. If deleting the m3u8 file will not delete the ts file at the same time, if you need to delete it in association, you can use the delete m3u8 file interface .

Request Descriptions

POST /fmgr/delete
HOST: <MgrDomain>
Authorization:<accessToken>

Header Description

parameter Required Description
HOST Yes Management domain name , which can be obtained in the user management interface
Authorization Yes Manage Credentials

Parameter Description

Request parameters are organized in the following format and submitted as request content:

fops=bucket/<Urlsafe_Base64_Encoded_bucket>/key/<Urlsafe_Base64_Encoded_key>&notifyURL=<Urlsafe_Base64_Encoded_notifyUrl>&separate=<Separate>
Parameter Required Description
fops Yes The processing parameter list, the format is as described above, and multiple processing requests are supported at the same time. The parameter lists are separated by ;. Note: When the specified resource does not exist, the returned result is “deletion successful”.
bucket Yes Specify storage space. <Urlsafe_Base64_Encoded_bucket> is the URL-safe Base64-encoded string for the specified bucket name.
key Yes Specifies the key to store the resource. <Urlsafe_Base64_Encoded_key> is the URL-safe Base64-encoded string for the key of the specified resource.
notifyURL no The processing result is notified of the receiving URL. For the format of the notification content, see the returned content of the task query interface .
separate no Whether processing instructions are notified separately. Set 1 and 0 as option codes: 1: Indicates that notifyURL is notified after each command is executed. 0: Indicates that notifyURL is notified once after all commands are executed . The default value is 0.

fops parameter example

    fops=bucket/bXlidWNrZXQ=/key/bXlkaXIvYWFjLmpwZw==;bucket/bXlidWNrZXQ=/key/bXlkaXIvYWFiLmpwZw==&notifyURL=aHR0cDovL3Rlc3QuY29tL25vdGlmeVVSbA==&separate=1

Response description

If the request is successful, a Jsonstring with the following content is returned:

    { "persistentId": <persistentId> }
Field name Required Description
persistentId Yes The task process ID, which can be used to query the task progress.

If the request fails, a Jsonstring with the following content is returned:

{
    "code": "<code string>",
    "message": "<ErrMsg string>"
}
Field name Required Description
code Yes HTTP request response code, see HTTP response status code
message Yes Request failed message

Example

curl -v -X POST -d "fops=bucket/bXlidWNrZXQ=/key/bXlkaXIvYWFjLmpwZw==;bucket/bXlidWNrZXQ=/key/bXlkaXIvYWFiLmpwZw==&notifyURL=aHR0cDovL3Rlc3QuY29tL25vdGlmeVVSbA==&separate=1" -H "Authorization:86622e227a50d49d858c2494a935bc2e4ac543a7:Y2JmMGY0YTNhZmQxZmVlZGM2ZTA0YTdjNTcyOWQ1NjRkNTExYjg0Yg==" --url "http://mgrDomain/fmgr/delete"
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!