---
name: "git-secret-clean"
section: "1"
platform: "linux"
package: "git-secret"
version: "0.5.0-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/git-secret-clean"
---

# git-secret-clean(1)

removes all the hidden files.

## NAME

**git-secret-clean** - removes all the hidden files.

## SYNOPSIS

```
git secret clean [-v]
```

## DESCRIPTION

**git-secret-clean** - deletes all files in the current **git-secret** repo that end with **.secret**.

You can change the extension **git-secret** uses for encrypted files with the **SECRETS\_EXTENSION** environment variable.

Note that it will delete any files ending in **.secret**, even if they are not tracked by **git-secret**.

Also note that this command does not delete unencrypted versions of files.

Verbose mode, enabled with the **-v** option, displays the filenames deleted.

## OPTIONS

```
-v  - verbose mode, shows which files are deleted.
-h  - shows this help.
```

You can also enable verbosity using the SECRETS\_VERBOSE environment variable, as documented at [git-secret(7)](/git-secret/7.md) *https://git-secret.io/*

## MANUAL

Run **man git-secret-clean** to see this document.

## SEE ALSO

[git-secret-whoknows(1)](/git-secret-whoknows/1.md) *https://git-secret.io/git-secret-whoknows*, [git-secret-add(1)](/git-secret-add/1.md) *https://git-secret.io/git-secret-add*, [git-secret-remove(1)](/git-secret-remove/1.md) *https://git-secret.io/git-secret-remove*, [git-secret-removeperson(1)](/git-secret-removeperson/1.md) *https://git-secret.io/git-secret-removeperson*
