---
title: "Remove the validity override of a secret"
method: DELETE
path: "/v1/secrets/{secret_id}/validity"
tags: ["Secrets"]
---

# Remove the validity override of a secret

`DELETE /v1/secrets/{secret_id}/validity`

Remove the customer-provided validity override of a secret. GitGuardian
resumes its periodic validity checks and a fresh check is triggered to
recompute the real validity asynchronously.

**Prerequisites**:
  - A valid API key with the secrets:write scope.

## Path parameters

- `secret_id` integer, required

## Response `204`

The validity override was removed.

## Other responses

- `401` — Invalid API key
- `403` — Forbidden
- `404` — Resource not found
- `503` — API under maintenance

---

[API](https://skmtc.net/gitguardian/apis/gitguardian-api.md) · [All operations](https://skmtc.net/gitguardian/apis/gitguardian-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitguardian/gitguardian-api/revisions/511b067cdcb1/schema)
