---
title: "Delete Key"
method: DELETE
path: "/api/v1/idps/credentials/keys/{keyId}"
tags: ["IdentityProvider"]
---

# Delete Key

`DELETE /api/v1/idps/credentials/keys/{keyId}`

## Request

- Base URL: `https://your-subdomain.okta.com`
- URL: `https://your-subdomain.okta.com/api/v1/idps/credentials/keys/{keyId}`
- Auth: API key in header `Authorization`

Deletes a specific IdP Key Credential by `kid` if it is not currently being used by an Active or Inactive IdP.

## Path parameters

- `keyId` string, required

## Response `204`

No Content

---

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