DELETE Object

最近更新时间:2020-07-10 07:53:23

DELETE Object


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.ksyun.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.

金山云,开启您的云计算之旅

免费注册