GH-SECRET-DELETE(1)
π GH-SECRET-DELETE(1) π
okay bestie, so this is the manual page for gh-secret-delete β it lives in the GitHub CLI manual and it's about to make secrets disappear β¨
β¨ NAME β¨
gh-secret-delete β delete secrets. that's it. that's the whole vibe. π
π¦ SYNOPSIS π¦
gh secret delete <secret-name> [flags]
π DESCRIPTION π
so you wanna delete a secret? iconic. but plot twist β secrets live at different levels, and you get to pick which one gets the axe. here's the whole lineup, no cap:
- repository (this is the default): available to GitHub Actions runs, Agents sessions, or Dependabot in a repository
- environment: available to GitHub Actions runs for a deployment environment in a repository
- organization: available to GitHub Actions runs, Agents sessions, Dependabot, or Codespaces within an organization
- user: available to Codespaces for your user
pick your fighter π«Ά
π₯ OPTIONS π₯
-a,--app <string>β delete a secret for a specific application. the valid values are{actions|agents|codespaces|dependabot}, so like, choose wisely π-e,--env <string>β delete a secret for an environment-o,--org <string>β delete a secret for an organization-u,--userβ delete a secret for your user
π OPTIONS INHERITED FROM PARENT COMMANDS π
-R,--repo <[HOST/]OWNER/REPO>β select another repository using the[HOST/]OWNER/REPOformat. it's giving "borrowed from the parent command" energy but we love it anyway π§
β ALIASES β
gh secret remove
same thing, different name β iykyk π
π EXIT CODES π
0: Successful execution π1: Error π2: Command canceled π4: Authentication required π
NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information. fr fr, don't @ me if you get a weird one π
πΈ SEE ALSO πΈ
gh-secret(1) β go check out the whole secret family, they're all main characters tbh π
<div align="center">π π π</div>
and that's the tea, bestie π this icon was brought to you by GitHub CLI v2.102.0, dated Oct 2026 β yeah she's from the future, slay π β¨
π¦ where this page comes from
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms