Method: corpora.documents.chunks.batchDelete

Batch delete Chunks.

HTTP request

POST https://generativelanguage.googleapis.com/v1beta/{parent=corpora/*/documents/*}/chunks:batchDelete

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Optional. The name of the Document containing the Chunks to delete. The parent field in every DeleteChunkRequest must match this value. Example: corpora/my-corpus-123/documents/the-doc-abc

Request body

The request body contains data with the following structure:

JSON representation
{
  "requests": [
    {
      object (DeleteChunkRequest)
    }
  ]
}
Fields
requests[]

object (DeleteChunkRequest)

Required. The request messages specifying the Chunks to delete.

Response body

If successful, the response body is empty.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/generative-language.retriever

For more information, see the Authentication Overview.

DeleteChunkRequest

Request to delete a Chunk.

JSON representation
{
  "name": string
}
Fields
name

string

Required. The resource name of the Chunk to delete. Example: corpora/my-corpus-123/documents/the-doc-abc/chunks/some-chunk