---
title: "DELETE /collections/{name}/truncate"
method: DELETE
path: "/collections/{name}/truncate"
tags: ["truncate"]
---

# DELETE /collections/{name}/truncate

`DELETE /collections/{name}/truncate`

Permanently remove all or filtered document data from a collection on this server. Does not propagate the deletion to other Defra nodes in the network.

## Path parameters

- `name` string, required

## Request body

- TruncateCollection
  - `filter` unknown

## Response `200`

ok

## Other responses

- `400` — error

## Changes

- **2026-08-27** `659e79583f79` — 1 info
  - added optional request body
- **2026-01-19** `9e4c04709154` — 1 info
  - endpoint added
- **2025-06-02** `60812f5416c5` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/sourcenetwork/apis/defradb-api/changes/collections/:name/truncate/delete.md)

---

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