gh secret remove

gh secret remove <secret-name> [flags]

Remove a secret on one of the following levels:

  • repository (default): available to Actions runs in a repository
  • environment: available to Actions runs for a deployment environment in a repository
  • organization: available to Actions runs within an organization
  • user: available to Codespaces for your user


-e, --env <string>
Remove a secret for an environment
-o, --org <string>
Remove a secret for an organization
-u, --user
Remove a secret for your user

Options inherited from parent commands

-R, --repo <[HOST/]OWNER/REPO>
Select another repository using the [HOST/]OWNER/REPO format

See also