| GT-PR-DELETE(1) | gitea-cli Manual | GT-PR-DELETE(1) |
NAME
gt-pr-delete - Delete a pull request
SYNOPSIS
gt pr delete [<number> | <url> | <branch>] [flags]
DESCRIPTION
Delete a pull request for good, with its comments, reviews and attachments. This cannot be undone and needs the permission to delete issues, which Gitea gives repository owners and administrators. The head and base branches stay. To only stop work on it, use gt pr close. A branch names only an open pull request: give the number of a closed or merged one. Issues are not deleted by this command: see gt issue delete.
ARGUMENTS
A pull request can be supplied as argument in any of the following formats: - by number, such as "13" or "#13" - by URL, such as "https://gitea.com/OWNER/REPO/pulls/13" - by the name of its head branch, such as "feature/login" or "bob:feature/login"; a branch that reads as OWNER/REPO#N, such as "fix/login#2", needs the OWNER:BRANCH form Without an argument, the pull request of the current branch is selected.
OPTIONS
--dry-run[=false] Show the write requests gt would send, without sending them
-h, --help[=false] help for delete
OPTIONS INHERITED FROM PARENT COMMANDS
--cwd="" Working directory for repository discovery
--debug[=false] Log the method, URL, status, and duration of each HTTP request to stderr
--host="" Gitea instance URL, including any base path
--interactive[=false] Allow prompts with machine output
--no-input[=false] Disable prompts and implicit editor/browser interactions
--remote="" Git remote used for repository discovery
-R, --repo="" Select a repository as OWNER/REPO or URL
--sudo="" Perform API requests as this user (requires an administrator account)
--user="" Account name on the selected instance
-y, --yes[=false] Accept confirmations without prompting
EXAMPLE
$ gt pr delete 13 $ gt pr delete 13 --yes
SEE ALSO
| Nov 2026 | gitea-cli |