跳到主要内容

删除对象

POST 

https://your-envId.api.tcloudbasegateway.com/delete-objects

批量删除对象。

Request

Body

arrayrequired

下载对象请求参数,数组格式

  • Array [
  • cloudObjectId 云端对象ID (string)
  • ]

Responses

调用成功时返回

Response Headers
  • X-Request-Id string

    请求ID

Schema
  • Array [
  • oneOf
    cloudObjectId 云端对象ID (string)
  • ]

Authorization: http

name: JWTAuthtype: httpscheme: bearerdescription: 环境 ID 所对应的 token,使用登录鉴权(v2)获取
curl -L 'https://your-envId.api.tcloudbasegateway.com/delete-objects' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '[
{
"cloudObjectId": "cloud://your-envId.bucket/not-exist"
},
{
"cloudObjectId": "cloud://your-envId.bucket/file.jpg"
}
]'
Request Collapse all
Base URL
https://your-envId.api.tcloudbasegateway.com
Auth
Body required
[
{
"cloudObjectId": "cloud://your-envId.bucket/not-exist"
},
{
"cloudObjectId": "cloud://your-envId.bucket/file.jpg"
}
]
ResponseClear

Click the Send API Request button above and see the response here!