Skip to content
Try Gitea Cloud ☁️ for 30 days → Accelerate your Development & Deploys!

Delete a secret in a repository

DELETE
/repos/{owner}/{repo}/actions/secrets/{secretname}
curl --request DELETE \
--url https://gitea.com/api/v1/repos/example/example/actions/secrets/example \
--header 'Authorization: Basic <credentials>'
owner
required
string

Owner of the repository

repo
required
string

Name of the repository

secretname
required
string

Name of the secret

Delete one secret of the repository

APIError is error format response

message
string
url
string

APINotFound is a not found empty response