---
title: "Delete a secret in a user scope"
method: DELETE
path: "/user/actions/secrets/{secretname}"
tags: ["user"]
---

# Delete a secret in a user scope

`DELETE /user/actions/secrets/{secretname}`

## Path parameters

- `secretname` string, required

## Response `204`

delete one secret of the user

## Other responses

- `400` — APIError is error format response
- `404` — APINotFound is a not found empty response

---

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