文档中心 > DeleteObject
DeleteObject

最近更新时间:2021-12-24

使用DeleteObject接口删除指定的Object(如果存在)。如果不存在,则不做任何操作。


请求

请求语法

DELETE /ObjectName HTTP/1.1

Host: examplebucket.region.unicloudsrv.com

Date: date

Content-Length: length

Authorization: authorization string


响应

响应消息头

参数

描述

x-amz-delete-marker

指定获取的 Object 是(true)或者不是(flase)一个 delete marker,如果不是,该响应头部不会出现。

 

示例

请求示例

DELETE /my-second-image.jpg HTTP/1.1

Host: test.oss-cn-north-1.unicloudsrv.com

Date: Wed, 12 Oct 2009 17:50:00 GMT

Authorization: authorization string

Content-Type: text/plain

返回示例 

HTTP/1.1 204 NoContent

Date: Wed, 12 Oct 2009 17:50:00 GMT

Content-Length: 0

Connection: close