> Agent-readable docs index: /llms.txt. Download /docs.zip to grep all markdown files locally.

---
title: "Delete secret"
description: "Delete secret"
api: "DELETE /api/v0/projects/{projectId}/environments/{environmentId}/secrets/{name}"
gridGap: 30
---

<Aside full>

<RequestExample>

```bash lines=false
curl -X DELETE "https://api.example.com/api/v0/projects/<projectId>/environments/<environmentId>/secrets/<name>"
```

</RequestExample>

</Aside>

<OpenAPIEndpoint {...{"method":"delete","path":"/api/v0/projects/{projectId}/environments/{environmentId}/secrets/{name}","summary":"Delete secret","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"environmentId","in":"path","required":true,"schema":{"type":"string"}},{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":[{"status":"200","description":"","schema":{"type":"object","required":["ok","name"],"properties":{"ok":{"type":"boolean"},"name":{"type":"string"}}}},{"status":"default","description":""}],"security":[],"servers":[]}} />

---

*Powered by [holocron.so](https://holocron.so)*
