---
title: "Bulk delete documents"
method: DELETE
path: "/v3/documents/bulk"
tags: ["Ingest"]
---

# Bulk delete documents

`DELETE /v3/documents/bulk`

Bulk delete documents by IDs or container tags

## Request body

- object — Request body for bulk deleting documents by IDs or container tags
  - `ids` string[] — Array of document IDs to delete (max 100 at once)
  - `containerTags` string[] — Array of container tags - all documents in these containers will be deleted
  - `filepath` string — Delete documents matching this filepath. Exact match for full paths, prefix match if ending with /

## Response `200`

Bulk deletion completed successfully

- object — Response for bulk document deletion
  - `success` boolean, required — Whether the bulk deletion was successful
  - `deletedCount` number, required — Number of documents successfully deleted
  - `errors` object[] — Array of errors for documents that couldn't be deleted (only applicable when deleting by IDs)
    - `id` string, required
    - `error` string, required
  - `containerTags` string[] — Container tags that were processed (only applicable when deleting by container tags)

## Other responses

- `400` — Bad request - either 'ids' or 'containerTags' must be provided
- `401` — Unauthorized
- `500` — Internal server error

---

[API](https://skmtc.dev/supermemory/apis/supermemory-api.md) · [All operations](https://skmtc.dev/supermemory/apis/supermemory-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/supermemory/supermemory-api/revisions/b8c2dbc8f2b5/schema)
