Use with caution! By default the github token created with usethis::create_github_token() does not allow this functionality. You must create your own PAT that has the appropriate permissions to delete repositories.

gh_repos_delete(path, ...)



GitHub repo path of the form "username/repo". If not provided, will default to current repo.


Additional parameters, see


NA; used for side effects to delete a repository from GitHub.

See also