DELETE Object

Last updated:2021-09-14 16:18:08

Description

This interface mainly implements the delete object operation, if it exists. If it does not exist, do nothing.

Request

Syntax

DELETE /{ObjectKey} HTTP/1.1
Host: {BucketName}.{endpoint}
Date: {date}
Content-Length: {length}
Authorization: {SignatureValue}

Attention:

Request Parameters

The request does not use request parameters.

Request Headers

The request uses a common request header. For more information, please click Public Request Header.

Response

Response Headers

Header Name Description
x-kss-delete-marker Specify the object to get is (true) or is not (flase) a delete marker,if not, the response header will not appear.
Type:Boolean
Valid Value:true false
Default:false

Response Elements

The interface does not return response elements.

Special Errors

The request does not return any special errors.

Examples

Sample Request

DELETE /my-image.jpg HTTP/1.1
Host: ks3-example.ks3-cn-beijing.ksyuncs.com
Date: Fri, 26 Dec 2014 06:52:15 GMT
Authorization: authorization string
Content-Type: text/plain

Sample Response

HTTP/1.1 204 NoContent
Date: Fri, 26 Dec 2014 06:52:15 GMT
Content-Length: 0
Connection: close
Server: Tengine

Interface Detail Analysis

  • This operation is irreversible and the data cannot be recovered after deletion.

Did you find the above information helpful?

Unhelpful
Mostly Unhelpful
A little helpful
Helpful
Very helpful

What might be the problems?

Insufficient
Outdated
Unclear or awkward
Redundant or clumsy
Lack of context for the complex system or functionality

More suggestions

0/200

Please give us your feedback.

Submitted

Thank you for your feedback.

问题反馈