# cachewipe
[](https://crates.io/crates/cachewipe)
[](https://docs.rs/cachewipe)
[](https://github.com/Ewpratten/cachewipe/actions/workflows/build.yml)
[](https://github.com/Ewpratten/cachewipe/actions/workflows/clippy.yml)
[](https://github.com/Ewpratten/cachewipe/actions/workflows/audit.yml)
`cachewipe` is a command line utility I originally built to wipe all PYC files from a Python monorepo, while respecting the gitignore (not deleting files that we want to keep). As of now, this tool is fully functional, but does **not** pay attention to gitignore due to some issues im having with the library.
## Installation
This crate can be installed via `cargo` with:
```sh
cargo install cachewipe
```
## Usage
```
cachewipe 0.1.0
Evan Pratten <ewpratten@gmail.com>
Glob file delete that respects gitignore
USAGE:
cachewipe [FLAGS] [OPTIONS] <pattern>
FLAGS:
--dry-run Just print file paths to stdout. Don't delete anything
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-i, --ignore-root-dir <root_ignores>... Add a root-level directory to the list of dirs to ignore
ARGS:
<pattern> File or path REGEX pattern to delete
```
Example:
```sh
cachewipe ".*.pyc$"
```