---
title: "Withdraw a key rule"
method: DELETE
path: "/v1/contracts/key-rules/{ruleId}"
tags: ["Contracts"]
---

# Withdraw a key rule

`DELETE /v1/contracts/key-rules/{ruleId}`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/contracts/key-rules/{ruleId}`
- Auth: HTTP bearer

Sets the rule inactive. Documents it already filed stay where they are until re-read or re-keyed.

## Path parameters

- `ruleId` string, uuid, required

## Response `200`

The rule with `active: false`.

- ContractsKeyRule
  - `id` string, uuid
  - `customer_id` string, uuid
  - `from_key` string
  - `site` string: A normalized site key; empty means every document of `from_key`.
  - `to_key` string
  - `note` string, nullable
  - `created_by` string, nullable
  - `active` boolean
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `400`: The request is invalid.
- `404`: The requested resource was not found.

## Changes

- **2026-10-28** `0a485a46163e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/contracts/key-rules/:ruleId/delete.md)

---

[API](https://skmtc.dev/talonic/apis/talonic-api.md) - [All operations](https://skmtc.dev/talonic/apis/talonic-api/llms.txt) - [OpenAPI document](https://skmtc.dev/talonic/apis/talonic-api/revisions/9f6d53e2ab5e?raw)
