---
title: "Delete an organization secret"
method: DELETE
path: "/orgs/{org}/dependabot/secrets/{secret_name}"
tags: ["dependabot"]
---

# Delete an organization secret

`DELETE /orgs/{org}/dependabot/secrets/{secret_name}`

Deletes a secret in an organization using the secret name.

OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.

## Path parameters

- `org` string, required
- `secret_name` string, required

## Response `204`

Response

---

[API](https://skmtc.net/github/apis/ghes.md) · [All operations](https://skmtc.net/github/apis/ghes/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/ghes/revisions/5438365412fe/schema)
