Full name: projects.locations.processors.dataset.batchDeleteDocuments
Deletes a set of documents.
HTTP request
POST https://{endpoint}/v1beta3/{dataset}:batchDeleteDocuments
Where {endpoint}
is one of the supported service endpoints.
Path parameters
Parameters | |
---|---|
dataset |
Required. The dataset resource name. Format: projects/{project}/locations/{location}/processors/{processor}/dataset It takes the form |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"datasetDocuments": {
object ( |
Fields | |
---|---|
datasetDocuments |
Required. Dataset documents input. If given |
Response body
If successful, the response body contains an instance of Operation
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the dataset
resource:
documentai.datasets.deleteDocuments
For more information, see the IAM documentation.
BatchDatasetDocuments
Dataset documents that the batch operation will be applied to.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field
|
|
individualDocumentIds |
Document identifiers. |
filter |
A filter matching the documents. Follows the same format and restriction as [google.cloud.documentai.master.ListDocumentsRequest.filter]. |
IndividualDocumentIds
List of individual DocumentIds.
JSON representation |
---|
{
"documentIds": [
{
object ( |
Fields | |
---|---|
documentIds[] |
Required. List of Document IDs indicating where the actual documents are stored. |