DELETE /<ObjectKey> HTTP/1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comDate: GMT DateAuthorization: Auth String
名称 | 描述 | 类型 | 是否必选 |
versionId | 指定要删除的版本 ID | string | 否 |
名称 | 描述 | 类型 |
x-cos-version-id | 对象的版本 ID 或删除标记的版本 ID | string |
x-cos-delete-marker | 当使用 versionId 请求参数指定删除标记的版本 ID 时,将返回此响应头部且值为 true,代表删除的版本 ID 对应的是一个删除标记 当未使用 versionId 请求参数,且指定对象所在的存储桶启用了版本控制时,将返回此响应头部且值为 true,代表该删除请求创建了一个删除标记作为对象的最新版本 | boolean |
DELETE /exampleobject HTTP/1.1Host: examplebucket-1250000000.cos.ap-beijing.myqcloud.comDate: Wed, 14 Aug 2019 11:59:40 GMTAuthorization: q-sign-algorithm=sha1&q-ak=AKID8A0fBVtYFrNm02oY1g1JQQF0c3JO****&q-sign-time=1565783980;1565791180&q-key-time=1565783980;1565791180&q-header-list=date;host&q-url-param-list=&q-signature=75ae614a90d55054f7dea2b5cdcfdeaa1f85****Connection: close
HTTP/1.1 204 No ContentContent-Length: 0Connection: closeDate: Wed, 14 Aug 2019 11:59:40 GMTServer: tencent-cosx-cos-request-id: NWQ1M2Y3YWNfMzdiMDJhMDlfODA1Yl8xZThj****
DELETE /exampleobject HTTP/1.1Host: examplebucket-1250000000.cos.ap-beijing.myqcloud.comDate: Wed, 14 Aug 2019 12:00:21 GMTAuthorization: q-sign-algorithm=sha1&q-ak=AKID8A0fBVtYFrNm02oY1g1JQQF0c3JO****&q-sign-time=1565784021;1565791221&q-key-time=1565784021;1565791221&q-header-list=date;host&q-url-param-list=&q-signature=f5ee3ccd55378061f1890b9a2d3dd1af94f6****Connection: close
HTTP/1.1 204 No ContentContent-Length: 0Connection: closeDate: Wed, 14 Aug 2019 12:00:21 GMTServer: tencent-cosx-cos-delete-marker: truex-cos-request-id: NWQ1M2Y3ZDVfN2RiNDBiMDlfMmMwNmVfMTc4****x-cos-version-id: MTg0NDUxNzgyODk2ODc1NjY0NzQ
DELETE /exampleobject?versionId=MTg0NDUxNzgyODk3MDgyMzI4NDY HTTP/1.1Host: examplebucket-1250000000.cos.ap-beijing.myqcloud.comDate: Wed, 14 Aug 2019 12:00:32 GMTAuthorization: q-sign-algorithm=sha1&q-ak=AKID8A0fBVtYFrNm02oY1g1JQQF0c3JO****&q-sign-time=1565784032;1565791232&q-key-time=1565784032;1565791232&q-header-list=date;host&q-url-param-list=versionid&q-signature=9553e1210ba22f0725e5ff7f9bb7c8760c58****Connection: close
HTTP/1.1 204 No ContentContent-Length: 0Connection: closeDate: Wed, 14 Aug 2019 12:00:32 GMTServer: tencent-cosx-cos-request-id: NWQ1M2Y3ZTBfODhjMjJhMDlfMWNkOF8xZDZi****x-cos-version-id: MTg0NDUxNzgyODk3MDgyMzI4NDY
DELETE /exampleobject?versionId=MTg0NDUxNzgyODk2ODc1NjY0NzQ HTTP/1.1Host: examplebucket-1250000000.cos.ap-beijing.myqcloud.comDate: Wed, 14 Aug 2019 12:00:42 GMTAuthorization: q-sign-algorithm=sha1&q-ak=AKID8A0fBVtYFrNm02oY1g1JQQF0c3JO****&q-sign-time=1565784042;1565791242&q-key-time=1565784042;1565791242&q-header-list=date;host&q-url-param-list=versionid&q-signature=14e18786f25e762fb11560ea788d5e07c375****Connection: close
HTTP/1.1 204 No ContentContent-Length: 0Connection: closeDate: Wed, 14 Aug 2019 12:00:42 GMTServer: tencent-cosx-cos-delete-marker: truex-cos-request-id: NWQ1M2Y3ZWFfNzljMDBiMDlfMjkyMDJfMWRjNjVm****x-cos-version-id: MTg0NDUxNzgyODk2ODc1NjY0NzQ
本页内容是否解决了您的问题?