Deletes a document. After deletion, you cannot view the original document or recall it.
Operation description
Prerequisites
- You have activated Alibaba Cloud Model Studio and Tongyi Dianjin services.
- Obtain the workspaceId: obtain the workspace identifier.
Try it now
You can directly run this API in OpenAPI Explorer, saving you the trouble of calculating signatures. After a successful run, OpenAPI Explorer can automatically generate SDK code examples.
Try it now
RAM authorization
The following table describes the authorization information of the API. You can use it in the Action element of a RAM policy statement to grant a RAM user or RAM role the permission to call this API. Details are as follows:
- Operation: the specific permission point.
- Access level: the access level of each operation. Valid values: Write, Read, or List.
-
Resource type: the resource types that support authorization in the operation. Details are as follows:
- For required resource types, an asterisk (*) is prefixed.
- For operations that do not support resource-level authorization,
All Resourcesis used.
- Condition key: the condition keys defined by the cloud service itself.
- Dependent operation: other permissions required to successfully perform the operation. The caller must also have the permissions of the dependent operations for the operation to succeed.
| Operation | Access level | Resource type | Condition key | Dependent operation |
|---|---|---|---|---|
| dianjin:DeleteDocument | none | *All Resources * |
| None |
Request syntax
Request parameters
| Name | Type | Required | Description | Example value |
|---|---|---|---|---|
| workspaceId | string | Yes | Path parameter. The business space ID. | llm-xxxxx |
| body | object | No | Request body parameters. | |
| docIds | array | Yes | List of document IDs. | |
| docId | string | No | Document ID. | 1782981430906818562 |
| libraryId | string | Yes | Document library ID. | 3akzl28vap |
Response parameters
| Name | Type | Description | Example value |
|---|---|---|---|
| object | ResultCode | ||
| cost | long | Time consumed. | null |
| data | boolean | Returned data. | True |
| dataType | string | Data type. | null |
| errCode | string | Error code. | 0 |
| message | string | Error message. | ok |
| requestId | string | Request ID. | 67C7021A-D268-553D-8C15-A087B9604028 |
| success | boolean | Indicates whether the operation is successful. | true |
| time | string | Timestamp. | 2024-04-24 11:54:34 |
Examples
Success response example
JSON format