---
name: "stg-delete"
section: "1"
platform: "linux"
package: "stgit"
version: "0.18-1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/stg-delete"
---

# stg-delete(1)

Delete patches

## NAME

stg-delete - Delete patches

## SYNOPSIS

```
stg delete [options] [--] <patch1> [<patch2>] [<patch3>..<patch4>]
```

## DESCRIPTION

Delete the patches passed as arguments.

## OPTIONS

- \--spill

  Delete the patches, but do not touch the index and worktree. This only works with applied patches at the top of the stack. The effect is to "spill" the patch contents into the index and worktree. This can be useful e.g. if you want to split a patch into several smaller pieces.

- \-b BRANCH, --branch BRANCH

  Use BRANCH instead of the default branch.

- \-t, --top

  Delete top patch.

## STGIT

Part of the StGit suite - see [**stg**(1)](/stg/1.md)
