---
title: "Publicv1Documentsrouter.Batch Delete Documents"
method: POST
path: "/v1/documents/batch-delete"
tags: ["v1"]
---

# Publicv1Documentsrouter.Batch Delete Documents

`POST /v1/documents/batch-delete`

## Request

- Base URL: `https://app.eve.legal` (the document declares no server; this is the origin it was published from)
- URL: `https://app.eve.legal/v1/documents/batch-delete`
- Auth: OAuth 2
  - Password
  - Token URL: `token`

Batch delete documents in a matter by external IDs.
Maximum of 100 documents per request.

## Request body

- BatchDeleteDocumentsRequest
  - `externalMatterId` string, nullable: External ID of the matter. Exactly one of external_matter_id or external_lead_id must be provided (mutually exclusive)
  - `externalLeadId` string, nullable: External ID of the lead. Exactly one of external_matter_id or external_lead_id must be provided (mutually exclusive)
  - `externalDocumentIds` string[], required: List of external document IDs

## Response `200`

Successful Response

- BatchDeleteDocumentsResponse
  - `deletedDocuments` DeletedDocument[], required: List of documents that were deleted
    - `id` string, uuid, required: ID of the document
    - `externalId` string, required: External ID of the document

## Other responses

- `401`: Unauthorized
- `422`: Validation Error

---

[API](https://skmtc.dev/eve/apis/eve-public-api.md) - [All operations](https://skmtc.dev/eve/apis/eve-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/eve/apis/eve-public-api/revisions/1a108b551ef3?raw)
