根据文件ID删除指定的文件。
删除文件
DELETE https://dashscope.aliyuncs.com/api/v1/files/{file_id}
Accept: application/json
请求示例
curl --location --request DELETE "https://dashscope.aliyuncs.com/api/v1/files/123" \
--header "Authorization: Bearer ${DASHSCOPE_API_KEY}"
请求参数
|
字段 |
类型 |
传参方式 |
必选 |
描述 |
|
file_id |
String |
path |
是 |
返回示例
{
"request_id": "038e9953-6f0e-4691-afcc-1f0fe07b32c2"
}
返回参数
|
字段 |
类型 |
描述 |
|
code |
String |
错误码,仅当本次请求出错时返回 |
|
message |
String |
错误信息,仅当本次请求出错时返回 |
|
request_id |
String |
本次请求的系统唯一码 |
该文章对您有帮助吗?