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

# stg-clean(1)

Delete the empty patches in the series

## NAME

stg-clean - Delete the empty patches in the series

## SYNOPSIS

```
stg clean
```

## DESCRIPTION

Delete the empty patches in the whole series or only those applied or unapplied. A patch is considered empty if the two commit objects representing its boundaries refer to the same tree object.

## OPTIONS

- \-a, --applied

  Delete the empty applied patches.

- \-u, --unapplied

  Delete the empty unapplied patches.

## STGIT

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