---
title: "Remove a key mapping"
method: DELETE
path: "/identifiers/{did}/key-mappings/{mappingId}"
tags: ["KeyMappings"]
---

# Remove a key mapping

`DELETE /identifiers/{did}/key-mappings/{mappingId}`

Removes one local KMS key mapping by its mapping id. This does not
remove the verification method from the DID document.

## Parameters

- `./common-components.yml#/components/parameters/CorrelationId` — unresolved $ref

## Response `204`

Key mapping deleted successfully.

## Other responses

- `401` — unresolved $ref
- `403` — unresolved $ref
- `404` — unresolved $ref
- `500` — unresolved $ref

---

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