1 回のリクエストで複数のファイルを削除します。
操作説明
Deleting data tables through the API is not supported. To delete a data table or specific data in a table, go to Application Data.
This API is used to delete files in Application Data. It does not affect knowledge bases that have already been built. To delete files in a knowledge base, call the DeleteIndexDocument operation.
A RAM user (sub-account) must first obtain the API permissions for Alibaba Cloud Model Studio (requires
AliyunBailianDataFullAccess, which already includes the sfm:DeleteFiles permission) and join a workspace before calling this operation. The Alibaba Cloud account (main account) can call this operation directly without authorization. We recommend that you use the latest version of the Alibaba Cloud Model Studio SDK to call this operation.This operation can only delete files whose status is parsing failed (PARSE_FAILED) or parsing succeeded (PARSE_SUCCESS).
This operation is idempotent.
Throttling: Frequent calls to this operation are throttled. Do not exceed 10 queries per second (QPS). If you are throttled, try again later.
今すぐお試しください
テスト
RAM 認証
リクエスト構文
POST /{WorkspaceId}/datacenter/file/delete HTTP/1.1
パスパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| WorkspaceId |
string |
必須 |
カテゴリが属するワークスペースの ID。ID の取得方法については、ワークスペースの使用方法を参照してください。 |
llm-mbhn96xxxx |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| FileIds |
array |
必須 |
削除するファイルの ID のリスト。1 回のリクエストで最大 20 個のファイルを削除できます。 |
|
|
string |
任意 |
The ID of the file to be deleted. |
file_xxxx |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
Schema of Response |
||
| Code |
string |
The error code. |
DataCenter.FileTooLarge |
| Data |
object |
The returned data. |
|
| DeleteFileResultList |
array<object> |
The deletion results. |
|
|
object |
The deletion result of a single file. |
||
| FileId |
string |
file_6b193b9b4b1546ef9eaa7340e69adfca_10052857 |
|
| Status |
string |
DELETED |
|
| Message |
string |
The error message. |
Required parameter(%s) missing or invalid, please check the request parameters. |
| RequestId |
string |
Id of the request |
17204B98-7734-4F9A-8464-2446A84821CA |
| Status |
string |
The status code returned by the API. |
200 |
| Success |
boolean |
Indicates whether the API call is successful. Valid values:
|
true |
例
成功レスポンス
JSONJSON
{
"Code": "DataCenter.FileTooLarge",
"Data": {
"DeleteFileResultList": [
{
"FileId": "file_6b193b9b4b1546ef9eaa7340e69adfca_10052857",
"Status": "DELETED"
}
]
},
"Message": "Required parameter(%s) missing or invalid, please check the request parameters.",
"RequestId": "17204B98-7734-4F9A-8464-2446A84821CA",
"Status": "200",
"Success": true
}
エラーコード
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。