---
name: "git-delete-branch"
section: "1"
platform: "linux"
package: "git-extras"
version: "7.3.0-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/git-delete-branch"
---

# git-delete-branch(1)

Delete branches

## NAME

**git-delete-branch** - Delete branches

## SYNOPSIS

**git-delete-branch** \<branchname\>

## DESCRIPTION

Deletes local and remote branch named \<branchname\>. Note that local deletion fails if the branch is checked out.

## OPTIONS

\<branchname\>

The name of the branch to delete. If multiple branches are provided, then they will all be deleted.

## EXAMPLES

```
$ git delete-branch integration
$ git delete-branch integration bug/1234
```

## AUTHOR

Written by Tj Holowaychuk \<*tj@vision-media.ca*\>

## REPORTING BUGS

\<*https://github.com/tj/git-extras/issues*\>

## SEE ALSO

\<*https://github.com/tj/git-extras*\>
