Skip to main content

DeleteDocs

Deletes multiple documents.

Try it now

You can run this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After the call succeeds, OpenAPI Explorer can automatically generate SDK code examples. Try it now

Authorization information

The following table describes the authorization information of the API. You can use it in the Action element of a RAM permission policy statement to grant RAM users or RAM roles the permission to call this API. For more information, see the following:
  • Action: 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. For more information, see the following:
    • Required resource types are marked with a leading *.
    • For operations that do not support resource-level authorization, All resources is used.
  • Condition key: the condition keys defined by the cloud service itself.
  • Dependent action: the other permissions required to successfully perform the operation. The caller must have the permissions of the dependent actions at the same time for the operation to succeed.
ActionAccess levelResource typeCondition keyDependent action
aimiaobi:DeleteDocsdelete
*All resources
*
    None
None

Request parameters

NameTypeRequiredDescriptionExample value
WorkspaceIdstringYes

The unique identifier of the Alibaba Cloud Model Studio workspace: Get workspaceId

llm-2setzb9x4ewsd
DocIdsarrayYes

Document ID array.

stringYes

Document ID.

12345

Response elements

NameTypeDescriptionExample value
object

Schema of Response

Codestring

Internal error code.

successful
HttpStatusCodeinteger

The HTTP status code.

200
Messagestring

Return message.

successful
RequestIdstring

Request ID.

2C565EDD-E624-5FED-8565-0A9CB0C8CC46
Successboolean

Indicates whether the call was successful.

true

Examples

Success response JSON format
{
  "Code": "successful",
  "HttpStatusCode": 200,
  "Message": "successful",
  "RequestId": "2C565EDD-E624-5FED-8565-0A9CB0C8CC46",
  "Success": true
}

Error codes

HTTP status codeError codeError messageDescription
403NoPermissionYou are not authorized to perform this action.Check the workspaceId assignment.
Visit the Error Center to view more error codes.