GitHub has shipped GitHub CLI 2.104.0, published on November 12, 2026, and its main change sits in a command most of us run rarely and a little nervously. gh repo delete now warns when deleting a private or internal repository would also delete its forks, and it asks for a second confirmation before going ahead. According to the GitHub release notes for 2.104.0, that confirmation is required even when you pass --yes, which is the part anyone with a cleanup script should read twice.

    The rule behind the warning is old. GitHub Docs has long said that when a private repository is deleted its private forks go with it, while forks of a public repository stay where they are. The website shows that consequence before you confirm. The CLI never did: it asked you to type the repository name, and --yes skipped even that. The command itself began outside the core tool. When GitHub CLI 2.0 arrived in August 2021 with support for extensions, a small extension called gh-delete-repo appeared the same day, and it was later marked deprecated once gh repo delete shipped with the CLI. Some of us still type a repository’s name into that red box with one eye closed.

    GitHub CLI 2.104.0 Makes Repo Delete Warn Before Removing Private Forks In Terminals And Scripts

    In 2.104.0 the command looks the repository up before deleting anything, and if the lookup fails nothing is removed. In a terminal, a private or internal repository with forks now produces the same warning the website shows, followed by a question that defaults to No. Without a terminal, the command exits with status 1 unless you add a new flag:

    gh repo delete OWNER/REPO --yes --accept-cascading-deletion-of-private-forks

    Public repositories, repositories with no forks and forks themselves are deleted as before. The pull request behind the change gives the reason plainly: the person deleting often cannot see the forks that will disappear. Two fixes come along with it. gh auth status now reports rate-limit, server and network errors in its terminal output, and token refresh is skipped when gh’s state directory is not writable, a follow-up to the expiring tokens that entered preview in 2.103.0 in October.

    What a second yes means for scripts and agents

    For years --yes meant “I have thought about this,” and scripts leaned on it. This release splits that consent in two: one yes for the repository, another for forks you may never have seen. The flag’s length reads as deliberate, since nobody types those words by accident. The release notes also name agents next to non-interactive workflows, and that fits a year in which coding agents drifting off task on stale TODO comments has been a story of its own. A tool that acts without a person watching is the caller this prompt was written for.

    Upgrading and fixing cleanup scripts

    Homebrew users can run brew upgrade gh, WinGet users winget upgrade --id GitHub.cli, and binaries are on the releases page. GitHub CLI is written in Go, a language whose usage and job market statistics keep climbing, and it runs on macOS, Windows and Linux.

    Any script that deletes private or internal repositories with forks needs the new flag, which also skips the lookup and restores the old behavior. Jobs that run with a terminal attached, over ssh -t for example, will stop at the fork prompt until they pass it. Deletion still needs the delete_repo scope, granted with gh auth refresh -s delete_repo.

    Grace is a technical SEO specialist and web developer who writes about structured data, metadata, and site configuration for Webcode Tools. She helps websites improve how they appear in search results and on social platforms, and her guides explain the code behind it in a straightforward, practical way.