DeleteObject

Last update:2022-03-01 18:01:05

To delete a specified object, IAM wos:DeleteObject permission is required.

Note: If the object to be deleted does not exist, return to delete successfully; using this interface to delete the m3u8 file will not delete the ts file at the same time.

Request syntax

DELETE /Key HTTP/1.1 
Host: Bucket.Endpoint
Date: Date 
Authorization: Authorization

Request parameter

No request parameters.

Request header

Use public request headers .

Request body

No request body.

Response syntax

HTTP/1.1 StatusCode 
x-wos-request-id: RequestId 
Date: Date
Server:WS-web-server

Response header

Use public response headers .

Response body

No responding body.

Example

DELETE /test HTTP/1.1
Host: Bucket.s3-cn-south-1.wcsapi.com
Date: Sat, 03 Dec 2011 08:38:18 GMT
Authorization: WOS BF6C09F302931425E9A7:wQ1Tp3rD7kaUCsYfPKxOIN7NoSA=
Content-Type: text/plain

HTTP/1.1 204 No Content
x-wos-request-id: 001B21A61C6C000001340312E226528D
Date: Sat, 03 Dec 2011 08:38:18 GMT
Content-Length: 0
Connection: close
Server: WS-web-server

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!