Skip to main content

Delete Chunks

Delete chunks in batch — up to 10 per call.

POST
/api/v1/indices/rag/index/chunk/delete
cURL
curl -X POST "https://{workspaceId}.cn-beijing.maas.aliyuncs.com/api/v1/indices/rag/index/chunk/delete" \
  -H "Authorization: Bearer $DASHSCOPE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "pipelineId": "your_index_id",
    "chunkIds": ["chunk_abc123", "chunk_def456"]
  }'
{
  "code": "Success",
  "status_code": 200,
  "request_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
This operation is irreversible. Deleted chunks cannot be recovered. A single call accepts up to 10 chunks.

Authorizations

string
header
required

DashScope API Key, obtained from the API Key page in the console.

Body

application/json
string
required

Knowledge Base ID.

string[]
required

Chunk IDs to delete. Up to 10 per call.

items <= 10

Response

200-application/json
string

Response code. Success on success.

integer

HTTP status code.

string

Unique request identifier. Include this ID when reporting an issue.

object

Empty object on success.

{}
boolean

Whether the operation succeeded.

string

Response message. success on success.

string

Request status: SUCCESS or FAILED.