---
title: "Delete an SP signing key"
method: DELETE
path: "/api/sso-connectors/{id}/signing-keys/{keyId}"
tags: ["SSO connectors"]
---

# Delete an SP signing key

`DELETE /api/sso-connectors/{id}/signing-keys/{keyId}`

Delete the given Service Provider signing key. The active key cannot be deleted — activate a replacement key first, or disable signed authentication requests and deactivate this key.

## Path parameters

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

## Response `204`

The SP signing key was deleted.

## Other responses

- `400` — The key is the active signing key and cannot be deleted.
- `401` — Unauthorized
- `403` — Forbidden
- `404` — The SSO connector is not found, is not a SAML connector, or the signing key is not found.

---

[API](https://skmtc.net/logto/apis/logto-api-references.md) · [All operations](https://skmtc.net/logto/apis/logto-api-references/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/logto/logto-api-references/versions/a163dc77d842/schema)
