---
title: "Revoke (soft-delete) a sub-key"
method: DELETE
path: "/api/v1/organizations/{id}/keys/{keyId}"
tags: ["Multi-tenancy"]
---

# Revoke (soft-delete) a sub-key

`DELETE /api/v1/organizations/{id}/keys/{keyId}`

## Request

- Base URL: `https://legal.nexusquantum.legal`
- URL: `https://legal.nexusquantum.legal/api/v1/organizations/{id}/keys/{keyId}`
- Auth: HTTP bearer

Marks the sub-key as `active: false`. Preserves the audit trail and usage stats. The master cannot be revoked from here (409); use `DELETE /api/v1/organizations/{id}` to destroy the whole org.

## Path parameters

- `id` string, uuid, required
- `keyId` string, uuid, required

## Response `200`

Sub-key revoked.

- object
  - `revoked_key_id` string, uuid

## Other responses

- `403`: You are not master of this org.
- `409`: You tried to revoke the master from this route.

---

[API](https://skmtc.dev/nexusquantum/apis/nexus-legal-api.md) · [All operations](https://skmtc.dev/nexusquantum/apis/nexus-legal-api/llms.txt) · [OpenAPI document](https://skmtc.dev/nexusquantum/apis/nexus-legal-api/revisions/4084d8d4eb0b?raw)
