Text of cli.github.com › manual › gh_repo_delete as Styx crawled it on Nov 19, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

GitHub CLI | Take GitHub to the command line

CLI manual gh repo delete gh repo delete [<repository>] [flags] Delete a GitHub repository. With no argument, deletes the current repository. Otherwise, deletes the specified repository. For safety, when no repository argument is provided, the --yes flag is ignored and you will be prompted for confirmation. To delete the current repository non-interactively, specify it explicitly (e.g., gh repo delete owner/repo --yes ).

Deleting a private repository that is not itself a fork also deletes its forks, including forks you may not be able to see. If it has forks, you will be asked to confirm deleting them, even with --yes . Pass --accept-cascading-deletion-of-private-forks to skip that prompt. When not running interactively, it is required along with --yes . Like --yes , it is ignored when no repository argument is provided. Deletion requires authorization with the delete_repo scope.

To authorize, run gh auth refresh -s delete_repo Options --accept-cascading-deletion-of-private-forks Accept that deleting a private repository also deletes its forks --yes Confirm deletion without prompting for confirmation See also gh repo