---
title: "Delete or archive an agreement"
method: DELETE
path: "/agreements/{id}"
tags: ["Agreements"]
---

# Delete or archive an agreement

`DELETE /agreements/{id}`

## Request

- Base URL: `https://dataroom.corgi.com/api/v1`
- URL: `https://dataroom.corgi.com/api/v1/agreements/{id}`
- Auth: HTTP bearer

A draft is deleted permanently; a sent agreement fails `409 immutable` (void it instead). Agreement templates are archived; pass `?purge=1` to permanently remove one already archived. Scope: `envelopes:write`.

## Path parameters

- `id` string, required

## Query parameters

- `purge` '1'

## Response `200`

Deleted or archived

## Other responses

- `404`: Not found
- `409`: Sent agreements must be voided

---

[API](https://skmtc.dev/corgi/apis/dataroom-api.md) - [All operations](https://skmtc.dev/corgi/apis/dataroom-api/llms.txt) - [OpenAPI document](https://skmtc.dev/corgi/apis/dataroom-api/revisions/73f75ef04a00?raw)
