---
title: Install cleanpy on Debian using the Snap Store | Snapcraft
description: Get the latest version of cleanpy for on Debian - CLI command to remove
  cache files and temporary files that related to Python
url: https://snapcraft.io/install/cleanpy/debian
---

[Canonical Snapcraft](https://snapcraft.io/)

# Install cleanpy on **Debian**

# cleanpy

[Tsuyoshi Hombashi (thombashi)](https://snapcraft.io/publisher/thombashi "View all snaps from Tsuyoshi Hombashi (thombashi)")

* [Tsuyoshi Hombashi (thombashi)](https://snapcraft.io/publisher/thombashi "View all snaps from Tsuyoshi Hombashi (thombashi)")
* [Productivity](https://snapcraft.io/search?categories=productivity)
* [Utilities](https://snapcraft.io/search?categories=utilities)

[Install](https://snapcraft.io/install/cleanpy/debian#install)

#### CLI command to remove cache files and temporary files that related to Python

cleanpy is a CLI command to remove cache files and temporary files that
related to Python.

Execution example:

```
$ cleanpy -avf .
[INFO] remove directory [cache - Python]: ./test/__pycache__
[INFO] remove directory [cache - pytest]: ./.pytest_cache
[INFO] remove directory [env - virtual env]: ./.tox
[INFO] remove directory [build - Python]: ./dist
[INFO] remove directory [cache - mypy]: ./.mypy_cache
[INFO] remove directory [metadata - type checker]: ./.pytype
[INFO] remove directory [build - Python]: ./build
[INFO] remove directory [metadata - Python]: ./cleanpy.egg-info
[INFO] removed 8 directories
```

Command help:

```
 usage: cleanpy [-h] [-V] [--list] [-f] [--follow-symlinks] [--dry-run] [-a] [--include-builds] [--include-envs]
                [--include-metadata] [--include-testing] [--exclude PATTERN] [--exclude-envs] [-v | --debug | --quiet]
                DIR_PATH [DIR_PATH ...]

 Remove cache files and temporary files that related to Python.

 Skip directories from recursive search: .git, .hg, .svn, node_modules

 positional arguments:
   DIR_PATH            path to a root directory to search.

 optional arguments:
   -h, --help          show this help message and exit
   -V, --version       show program's version number and exit
   --list              print target directories/files. does not actually remove.
   -f, --force         no prompt before remove.
   --follow-symlinks   follow symlinks.
   --dry-run           do no harm.
   -v, --verbose       shows verbose output.
   --debug             for debug print.
   --quiet             suppress execution log messages.

 Remove Target:
   -a, --all           remove all of the caches and teporary files.
   --include-builds    remove files/directories that related build: build, dist, docs/_build
   --include-envs      remove virtual environments.
   --include-metadata  remove metadata.
   --include-testing   remove test results and coverage files.
   --exclude PATTERN   a regular expression that matches files and directories that should be excluded on recursive
                       searches.
   --exclude-envs      exclude virtual environments.

 Issue tracker: https://github.com/thombashi/cleanpy/issues
```

### Package name

* cleanpy

---

### License

* MIT

---

### Last updated

* 12 July 2021 - latest/stable
* 5 February 2023 - latest/edge

This snap hasn't been updated in a while. It might be unmaintained and have stability or security issues.

---

### Websites

* [github.com/thombashi/cleanpy](https://github.com/thombashi/cleanpy "https://github.com/thombashi/cleanpy")

---

### Contact

* [tsuyoshi.hombashi@gmail.com](mailto:tsuyoshi.hombashi@gmail.com "mailto:tsuyoshi.hombashi@gmail.com")

---

##### Report a Snap Store violation

* [Report this Snap](https://snapcraft.io/install/cleanpy/debian#report-snap-modal)

---

## Enable snaps on Debian and install cleanpy

Snaps are applications packaged with all their dependencies to run on all popular Linux distributions from a single build. They update automatically and roll back gracefully.

Snaps are discoverable and installable from the [Snap Store](https://snapcraft.io/store), an app store with an audience of millions.

### Enable snapd

On Debian 9 (Stretch) and newer, snap can be installed directly from the command line:

```
sudo apt update
sudo apt install snapd
```

After this, install the snapd snap in order to get the latest snapd:

```
sudo snap install snapd
```

### Install cleanpy

To install cleanpy, simply use the following command:

```
sudo snap install cleanpy
```

### Other popular snaps…

[See more...](https://snapcraft.io/search?categories=featured)

[See more in Featured](https://snapcraft.io/search?categories=featured)

### More things to do…

#### [Get the snap store](https://snapcraft.io/snap-store)

Browse and find snaps from the convenience of your desktop using the snap store snap.

#### [Learn more about snaps](https://snapcraft.io/docs)

Interested to find out more about snaps? Want to publish your own application? Visit [snapcraft.io](https://snapcraft.io/) now.

[Back to top](https://snapcraft.io/install/cleanpy/debian)

© 2026 Canonical Ltd.
Ubuntu and Canonical are registered trademarks of Canonical Ltd.

Powered by [Charmed Kubernetes](https://www.ubuntu.com/kubernetes)

[Join the forum](https://forum.snapcraft.io/), contribute to or report problems with,
[snapd](https://bugs.launchpad.net/snapd),
[Snapcraft](https://bugs.launchpad.net/snapcraft),
or [this site](https://github.com/canonical/snapcraft.io/issues/new).

* [Share on Twitter](https://twitter.com/snapcraftio)
* [Share on Facebook](https://www.facebook.com/snapcraftio)
* [Share on YouTube](https://www.youtube.com/snapcraftio)

* [Terms of Service](https://ubuntu.com/legal/terms-and-policies/snap-store-terms)
* [Data privacy](https://www.ubuntu.com/legal/data-privacy)
* [Manage your tracker settings](https://snapcraft.io/install/cleanpy/debian)
* [Service status](https://status.snapcraft.io/)
* [Other functions](https://dashboard.snapcraft.io/)
* [Contact us](https://snapcraft.io/about/contact-us)
