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

# Delete an organization secret

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

Deletes an organization development environment secret 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

## Other responses

- `404` — Resource not found

---

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