---
title: "Revoke agent secret"
method: DELETE
path: "/agents/{agentKey}/secrets/{secretId}"
tags: ["Agents Settings"]
---

# Revoke agent secret

`DELETE /agents/{agentKey}/secrets/{secretId}`

Delete an agent secret (immediate and irreversible)

## Path parameters

- `agentKey` string, required
- `secretId` string, required

## Response `204`

Status 204 Response

---

[API](https://skmtc.dev/envzero/apis/env0-api.md) · [All operations](https://skmtc.dev/envzero/apis/env0-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/envzero/env0-api/revisions/513441cbe9dc/schema)
