LinuxCommandLibrary

hub-delete

deletes a GitHub repository

TLDR

Delete repository

$ hub delete [user/repo]
copy
Delete current repo
$ hub delete
copy
Force delete
$ hub delete -y [user/repo]
copy

SYNOPSIS

hub delete [options] [repository]

DESCRIPTION

hub delete deletes a GitHub repository. Without arguments, it deletes the repository associated with the current directory.
The command requires confirmation unless forced. It permanently removes the repository including all issues, PRs, and wiki.

PARAMETERS

REPOSITORY

Repository to delete (user/repo).
-y, --yes
Skip confirmation.
--help
Display help information.

CAVEATS

Destructive and irreversible. Requires authentication. Owner permissions needed.

HISTORY

hub delete is part of hub, GitHub's original CLI for repository management.

SEE ALSO

hub(1), gh(1), hub-create(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community