---
title: "Delete a repository secret"
method: DELETE
path: "/repos/{owner}/{repo}/actions/secrets/{secret_name}"
tags: ["actions"]
---

# Delete a repository secret

`DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}`

Deletes a secret in a repository using the secret name.

You must authenticate using an access token with the `repo` scope to use this endpoint.
GitHub Apps must have the `secrets` repository permission to use this endpoint.
Authenticated users must have collaborator access to a repository to create, update, or read secrets.

## Path parameters

- `owner` string, required
- `repo` string, required
- `secret_name` string, required

## Response `204`

Response

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-5.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-5/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-5/versions/50ae54440071/schema)
