Skip to Content

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_modulessafe

    npm / yarn / pnpm dependencies

  • .nextsafe

    Next.js build output

  • .nuxtsafe

    Nuxt dev/type-generation cache

  • .outputsafe

    Nuxt 3 build output (Nitro)

  • .astrosafe

    Astro build cache

  • .docusaurussafe

    Docusaurus build cache

  • .angularsafe

    Angular CLI build cache

  • .svelte-kitsafe

    SvelteKit build output

  • distsafe

    Generic build output (also used by many other ecosystems' bundlers)

  • outgated

    Build 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

  • .turbosafe

    Turborepo cache

  • .cachegated

    Framework cache (Parcel, Gatsby, and others) — gated, because a bare .cache can hold anything

    Only beside: package.json

  • .swcsafe

    SWC compiler cache

  • .vitesafe

    Vite cache

  • .parcel-cachesafe

    Parcel cache

  • .exposafe

    Expo cache

  • .contentlayersafe

    Contentlayer generated content cache

  • .serverlesssafe

    Serverless Framework packaged build artifacts

  • storybook-staticsafe

    Storybook build output

  • playwright-reportsafe

    Playwright HTML report output

  • test-resultsgated

    Playwright test results

    Only beside: package.json

  • coveragegated

    Test 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_outputsafe

    nyc raw coverage data

  • bower_componentssafe

    Bower dependencies (legacy)

  • jspm_packagessafe

    JSPM dependencies (legacy)

  • __pycache__safe

    Python bytecode cache

  • .venvgated

    Virtual environment — proved by the pyvenv.cfg inside it

    Only beside: pyvenv.cfg inside it

  • venvgated

    Virtual environment — proved by the pyvenv.cfg inside it

    Only beside: pyvenv.cfg inside it

  • .pytest_cachesafe

    pytest cache

  • .mypy_cachesafe

    mypy type-checker cache

  • .ruff_cachesafe

    Ruff linter cache

  • .toxsafe

    tox test environments

  • .noxsafe

    nox test sessions (virtualenvs)

  • .eggssafe

    setuptools egg build cache

  • htmlcovsafe

    coverage.py HTML report output

  • .hypothesissafe

    Hypothesis property-testing cache

  • .ipynb_checkpointssafe

    Jupyter notebook checkpoint snapshots

  • targetgated

    Cargo, 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

  • registrygated

    Cargo crate registry cache — only inside a Cargo home (~/.cargo), never a folder that merely has this name

    Only beside: .crates.toml or .crates2.json

  • DerivedDatasafe

    Xcode derived data

  • .buildsafe

    Swift Package Manager build output (`swift build`)

  • .swiftpmsafe

    Xcode's local Swift Package Manager cache

  • Podsgated

    CocoaPods dependencies — only meaningful next to a project's Podfile

    Only beside: Podfile

  • Carthagegated

    Carthage build/checkout output, fully regenerable via `carthage bootstrap`

    Only beside: Cartfile or Cartfile.resolved

  • .vssafe

    Visual 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

  • .gradlegated

    Gradle project/build cache

    Only beside: build.gradle or build.gradle.kts or settings.gradle or settings.gradle.kts

  • .cxxgated

    Android NDK/CMake native build cache (Android Studio)

    Only beside: build.gradle or build.gradle.kts or settings.gradle or settings.gradle.kts

  • buildgated

    Generic 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

  • vendorgated

    Composer'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

  • .yardocsafe

    YARD documentation generation cache

  • pkggated

    Gem build output from `rake build`/`gem build`, only next to a Gemfile

    Only beside: Gemfile

  • .dart_toolsafe

    Dart/Flutter tooling cache (pub, build_runner, analyzer)

  • .elixir_lssafe

    ElixirLS language server cache

  • _buildgated

    Mix compiled build output, regenerable via `mix compile`

    Only beside: mix.exs

  • depsgated

    Mix fetched dependencies, regenerable via `mix deps.get`

    Only beside: mix.exs

  • dist-newstylesafe

    Cabal (new-style) build output

  • .stack-worksafe

    Stack build output

  • elm-stuffsafe

    Elm compiler cache and dependencies

  • zig-cachesafe

    Zig compiler cache (Zig ≤ 0.11)

  • .zig-cachesafe

    Zig compiler cache (Zig ≥ 0.12)

  • zig-outsafe

    Zig build output

  • .terragrunt-cachesafe

    Terragrunt download cache (modules and providers, re-fetched on the next run)

  • CACHEDIR.TAGtagged

    Any 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

  • .gitpruned

    Git metadata

  • .hgpruned

    Mercurial metadata

  • .svnpruned

    Subversion 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 example Pods/ next to a Podfile.
  • tagged — any directory, whatever its name, carrying a CACHEDIR.TAG with 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.

On this page