Skip to main content

DeleteDatasetDocument

Delete source documents.

Debug

You can run this API directly in OpenAPI Explorer, saving you from computing signatures. After the call succeeds, OpenAPI Explorer can automatically generate SDK code examples. Debug

Authorization information

The following table describes the authorization information of this API. You can use it in the Action element of RAM policy statements to grant RAM users or RAM roles 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, and List.
  • Resource type: the resource types that support authorization in the operation. Details are as follows:
    • Required resource types are marked with an asterisk (*) before them.
    • For operations that do not support resource-level authorization, All Resources is used.
  • Condition key: the condition keys defined by the cloud service itself.
  • Related operation: other permissions required to successfully perform the operation. The caller must have the permissions of related operations at the same time for the operation to succeed.
OperationAccess levelResource typeCondition keyRelated operation
aimiaobi:DeleteDatasetDocumentdelete
*All resources
*
    None
None

Request parameters

NameTypeRequiredDescriptionExample value
WorkspaceIdstringYes

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

llm-xx
DatasetIdlongNo

The unique identifier of the dataset. Either DatasetId or DatasetName is required.

1
DatasetNamestringNo

Dataset name

Dataset name
DocIdstringNo

The unique ID of the document specified by the user

xxx
DocUuidstringNo

The internal unique identifier of the document

xxx

Response elements

NameTypeDescriptionExample value
object

Response result

Dataarray

Business data

Datastring

The unique identifier of the deleted document

xxx
RequestIdstring

The unique ID of the request.

1813ceee-7fe5-41b4-87e5-982a4d18cca5
Successboolean

Indicates whether the request was successful. A value of true indicates that the request was successful. A value of false indicates that the request failed.

true
Codestring

The status code.

NoData
Messagestring

A description of the error.

success
HttpStatusCodeinteger

The HTTP status code.

200

Examples

Success response JSON format
{
  "Data": [
    "xxx"
  ],
  "RequestId": "1813ceee-7fe5-41b4-87e5-982a4d18cca5",
  "Success": true,
  "Code": "NoData",
  "Message": "success",
  "HttpStatusCode": 200
}

Error codes

Visit the Error Center to view more error codes.