GitHub CLI 2.104.0
New 1
Confirming forks again before deleting private or internal repositories
When cleaning up unmaintained GitHub repositories, many people add --yes after gh repo delete to skip confirmation. Now, if the repository you are deleting is private or internal and will also delete its forks (independent copies made from the original repository), the command warns you first. You then have to confirm a second time, even if you already passed --yes.
For non-interactive workflows or agents without manual input, running the deletion requires explicitly adding the flag that accepts cascading deletion:
```shell gh repo delete OWNER/REPO --yes --accept-cascading-deletion-of-private-forks ```
Picture a building manager shutting off the main power: previously, an authorization slip was enough to cut it right away, but now if the lines still feed other people's equipment, the process pauses for a second confirmation—and even automated schedules must separately state they agree to cut power to those as well.
Original changelog
## Protect private forks when deleting repositories
gh repo delete now warns when deleting a private or internal repository will also delete its forks. The additional confirmation is required even with --yes.
Non-interactive workflows and agents must explicitly accept the cascading deletion:
```shell
gh repo delete OWNER/REPO --yes --accept-cascading-deletion-of-private-forks
```