Last update:2025-08-18 15:32:42
This interface provides to delete the specified resource.
Note:
- Files cannot be recovered after deletion, please operate with caution.
- 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 .
POST /fmgr/delete
HOST: <MgrDomain>
Authorization:<accessToken>
| parameter | Required | Description |
|---|---|---|
| HOST | Yes | Management domain name , which can be obtained on the Bucket Overview interface of the Console. |
| Authorization | Yes | Manage Credentials |
Request parameters are organized in the following format and submitted as request content:
fops=bucket/<Urlsafe_Base64_Encoded_bucket>/key/<Urlsafe_Base64_Encoded_key>¬ifyURL=<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 bucket. <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==¬ifyURL=aHR0cDovL3Rlc3QuY29tL25vdGlmeVVSbA==&separate=1
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. |
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 |
curl -v -X POST -d "fops=bucket/bXlidWNrZXQ=/key/bXlkaXIvYWFjLmpwZw==;bucket/bXlidWNrZXQ=/key/bXlkaXIvYWFiLmpwZw==¬ifyURL=aHR0cDovL3Rlc3QuY29tL25vdGlmeVVSbA==&separate=1" -H "Authorization:86622e227a50d49d858c2494a935bc2e4ac543a7:Y2JmMGY0YTNhZmQxZmVlZGM2ZTA0YTdjNTcyOWQ1NjRkNTExYjg0Yg==" --url "http://mgrDomain/fmgr/delete"