Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A script to clean your directories

Project Description


## Objective

The python script "clean" allow the user to clean directory off temporary files with its default behavior.
With anoter configuration, it can allow you to clean a working directory before committing.

The final goal is to provide multiple configurations to clean a directory the exact way you want it.

## Suggestion

The best way to use this script at its fullest is to place in a personnal bin directory.
For example, you can create a directory "bin" in your home and add it to the variable $PATH.
Then, place the binaries and script you want to execute them wherever you are.
You can of course rename to clean or another name you prefer.

## Important options

### Help

./ -h or ./ --help

Print basical informations to the user, with a summary of the available commands.

### Pattern

./ -p PATTERN or ./ --pattern PATTERN

Allow the user to search for one or more pattern, overridding the default patterns.
You can use this option multiple times. For example, this command imitate the normal behavior : "./ -p '#*#' -p '*~'"

### Force

./ -f or ./ --force

Skip the prompt for all the files targeted.
Use this command with prudence, and verify that the command will not remove a file you want to keep.

### Recursive

./ -r or ./ --recursive

Make a recursion to clean every subdirectory found.
Usefull if your working directory is subdivised into multiple directories.

### Configuration

./ -c CONFIGURATION or ./ --configuration CONFIGURATION

Override the default behavior with the given configuration.
The argument for this option must be the name of the configuration placed in $HOME/.config/clean.

Release History

This version
History Node


History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(7.3 kB) Copy SHA256 Hash SHA256
Wheel py3 Sep 10, 2015
(4.8 kB) Copy SHA256 Hash SHA256
Source None Sep 10, 2015

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Kabu Creative Kabu Creative UX & Design Google Google Cloud Servers Fastly Fastly CDN StatusPage StatusPage Statuspage DigiCert DigiCert EV Certificate