此操作用来移除指定的文件,要求用户要对文件所在的Bucket拥有写权限。
请求语法
DELETE /ObjectName HTTP/1.1
Host: BucketName.oos-cn.ctyunapi.cn
Date: date
Content-Length: length
Authorization: SignatureValue
请求示例
删除一个叫my-image.jpg的图片文件。
DELETE /my-image.jpg HTTP/1.1
Host: example-bucket.oos-cn.ctyunapi.cn
Date: Mon, 03 Sep 2012 17:50:00 GMT
Authorization: SignatureValue
Content-Type: application/xml; charset=utf-8
响应示例
HTTP/1.1 204 No Content
x-amz-request-id: 5d5becc10cdd4f25047e8077797f3e40443436383a3c3e4042
Date: Mon, 03 Sep 2012 17:50:00 GMT
Server: CTYUN