---
title: "Delete SAML application secret"
method: DELETE
path: "/api/saml-applications/{id}/secrets/{secretId}"
tags: ["SAML applications"]
---

# Delete SAML application secret

`DELETE /api/saml-applications/{id}/secrets/{secretId}`

Delete a signing certificate of the SAML application. Active certificates cannot be deleted.

## Path parameters

- `id` string, required
- `secretId` string, required

## Response `204`

The signing certificate was deleted successfully.

## Other responses

- `400` — Cannot delete an active certificate.
- `401` — Unauthorized
- `403` — Forbidden
- `404` — The SAML application or certificate was 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)
