All Documents
Current Document

Content is empty

If you don't find the content you expect, please try another search term

Documentation

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.
On this page
Pure ModeNormal Mode

Pure Mode

Click to preview the document content in full screen
Feedback