Built-in rules
What purgeit recognizes out of the box, across every ecosystem.
Every rule below is generated from the catalog the scanner itself compiles, so this page cannot drift from what the CLI matches. Run purgeit rules to see the rules in effect for your config.
68 of 68 rules
node_modulessafenpm / yarn / pnpm dependencies
.nextsafeNext.js build output
.nuxtsafeNuxt dev/type-generation cache
.outputsafeNuxt 3 build output (Nitro)
.astrosafeAstro build cache
.docusaurussafeDocusaurus build cache
.angularsafeAngular CLI build cache
.svelte-kitsafeSvelteKit build output
distsafeGeneric build output (also used by many other ecosystems' bundlers)
outgatedBuild output (Next.js static export, IntelliJ and Gradle) — gated, because "out" is a common name for authored folders
Only beside: package.json or pom.xml or build.gradle or build.gradle.kts
.turbosafeTurborepo cache
.cachegatedFramework cache (Parcel, Gatsby, and others) — gated, because a bare .cache can hold anything
Only beside: package.json
.swcsafeSWC compiler cache
.vitesafeVite cache
.parcel-cachesafeParcel cache
.exposafeExpo cache
.contentlayersafeContentlayer generated content cache
.serverlesssafeServerless Framework packaged build artifacts
storybook-staticsafeStorybook build output
playwright-reportsafePlaywright HTML report output
test-resultsgatedPlaywright test results
Only beside: package.json
coveragegatedTest coverage reports (Istanbul/nyc/Jest/Vitest, SimpleCov, coverage.py) — gated on a project manifest
Only beside: package.json or Gemfile or pyproject.toml or setup.py or composer.json or pom.xml or build.gradle or build.gradle.kts or .coveragerc
.nyc_outputsafenyc raw coverage data
bower_componentssafeBower dependencies (legacy)
jspm_packagessafeJSPM dependencies (legacy)
__pycache__safePython bytecode cache
.venvgatedVirtual environment — proved by the pyvenv.cfg inside it
Only beside: pyvenv.cfg inside it
venvgatedVirtual environment — proved by the pyvenv.cfg inside it
Only beside: pyvenv.cfg inside it
.pytest_cachesafepytest cache
.mypy_cachesafemypy type-checker cache
.ruff_cachesafeRuff linter cache
.toxsafetox test environments
.noxsafenox test sessions (virtualenvs)
.eggssafesetuptools egg build cache
htmlcovsafecoverage.py HTML report output
.hypothesissafeHypothesis property-testing cache
.ipynb_checkpointssafeJupyter notebook checkpoint snapshots
targetgatedCargo, Maven, sbt and Anchor build output — gated on the manifest beside it, because 'target' is a common name for authored folders
Only beside: Cargo.toml or pom.xml or build.sbt or build.gradle or build.gradle.kts or Anchor.toml
registrygatedCargo crate registry cache — only inside a Cargo home (~/.cargo), never a folder that merely has this name
Only beside: .crates.toml or .crates2.json
DerivedDatasafeXcode derived data
.buildsafeSwift Package Manager build output (`swift build`)
.swiftpmsafeXcode's local Swift Package Manager cache
PodsgatedCocoaPods dependencies — only meaningful next to a project's Podfile
Only beside: Podfile
CarthagegatedCarthage build/checkout output, fully regenerable via `carthage bootstrap`
Only beside: Cartfile or Cartfile.resolved
.vssafeVisual Studio's local solution cache
bingated.NET build output next to a C#/VB#/F# project or solution file — also Eclipse's default Java output directory next to a .classpath
Only beside: *.csproj or *.vbproj or *.fsproj or *.sln or .classpath
objgated.NET intermediate build output next to a C#/VB#/F# project or solution file
Only beside: *.csproj or *.vbproj or *.fsproj or *.sln
.gradlegatedGradle project/build cache
Only beside: build.gradle or build.gradle.kts or settings.gradle or settings.gradle.kts
.cxxgatedAndroid NDK/CMake native build cache (Android Studio)
Only beside: build.gradle or build.gradle.kts or settings.gradle or settings.gradle.kts
buildgatedGeneric build output directory name, reused by npm scripts, Python setuptools, CocoaPods/Xcode, CMake, Gradle, Flutter, and Cargo — gated on whichever manifest is actually present
Only beside: Podfile or *.xcodeproj or *.xcworkspace or CMakeLists.txt or package.json or pyproject.toml or requirements.txt or build.gradle or build.gradle.kts or pubspec.yaml or Cargo.toml
vendorgatedComposer's PHP dependency directory, a Go module's vendored dependencies, Cargo's vendored crates, or Bundler's vendored gems — gated on whichever manifest is present
Only beside: composer.json or go.mod or Cargo.toml or Gemfile
.yardocsafeYARD documentation generation cache
pkggatedGem build output from `rake build`/`gem build`, only next to a Gemfile
Only beside: Gemfile
.dart_toolsafeDart/Flutter tooling cache (pub, build_runner, analyzer)
.elixir_lssafeElixirLS language server cache
_buildgatedMix compiled build output, regenerable via `mix compile`
Only beside: mix.exs
depsgatedMix fetched dependencies, regenerable via `mix deps.get`
Only beside: mix.exs
dist-newstylesafeCabal (new-style) build output
.stack-worksafeStack build output
elm-stuffsafeElm compiler cache and dependencies
zig-cachesafeZig compiler cache (Zig ≤ 0.11)
.zig-cachesafeZig compiler cache (Zig ≥ 0.12)
zig-outsafeZig build output
.terragrunt-cachesafeTerragrunt download cache (modules and providers, re-fetched on the next run)
CACHEDIR.TAGtaggedAny directory carrying a Cache Directory Tagging Specification tag (https://bford.info/cachedir/) — written by Cargo, Go, Zig, ccache, pytest and others to declare the directory a regenerable cache
Any directory containing CACHEDIR.TAG
.gitprunedGit metadata
.hgprunedMercurial metadata
.svnprunedSubversion metadata
Kinds of rule
- safe — deletable wherever the name appears. Once matched, the scanner never enters it.
- gated — the name alone is too generic (
build,vendor,bin), so it only counts when a manifest beside it proves it is generated output; for examplePods/next to aPodfile. - tagged — any directory, whatever its name, carrying a
CACHEDIR.TAGwith the standard signature (written by Cargo, Go, Zig, ccache, pytest, …). - pruned — version-control metadata: never entered, never deleted.
A matching name is not enough to delete: protection checks still apply to every match.
Missing an ecosystem? Add a rule in your config, or contribute it to the catalog.