Skip to content

gh repo delete: ignore --yes when no argument provided #11535

Description

@BagToad

Describe the feature or problem you’d like to solve

gh repo delete is dangerous when used with --yes and no argument as this will attempt to delete the repository in your current working directory.

Proposed solution

We should ignore --yes when there is no argument and force the user to confirm. If we cannot prompt (non-interactive), providing --yes without an argument should produce an error and exit.

Additional context

This will help prevent accidental deletion of important repositories.

Activity

  1. github-actions commented on Aug 19, 2025

    @github-actions
    Contributor

    Thank you for your issue! We have categorized it as a feature request, and it has been added to our backlog. In doing so, we are not committing to implementing this feature at this time, but, we will consider it for future releases based on community feedback and our own product roadmap.

    Unless you see the help wanted Contributions welcome label, we are not currently looking for external contributions for this feature.

    If you come across this issue and would like to see it implemented, please add a thumbs up! This will help us prioritize the feature. Please only comment if you have additional information or viewpoints to contribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementa request to improve CLIgh-reporelating to the gh repo command

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions