{
  "name": "conda clean removal flags compared",
  "description": "Compares each removal flag of the conda clean command: its short form, what it removes, whether the --all option includes it, and the warning the documentation attaches. Compiled from the conda documentation page for conda clean and the Anaconda post on conda disk usage, read 2026-11-18.",
  "page": "https://casrai.org/guides/conda-clear-cache",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-18T06:16:27Z",
  "temporalCoverage": null,
  "spatialCoverage": null,
  "columns": [
    {
      "name": "Flag",
      "unit": "",
      "description": ""
    },
    {
      "name": "Short form",
      "unit": "",
      "description": ""
    },
    {
      "name": "What it removes",
      "unit": "",
      "description": ""
    },
    {
      "name": "Included in --all",
      "unit": "",
      "description": ""
    },
    {
      "name": "Documented caution",
      "unit": "",
      "description": ""
    }
  ],
  "rows": [
    {
      "Flag": "--all",
      "Short form": "-a",
      "What it removes": "Index cache, unused cache packages, tarballs, tempfiles, logfiles",
      "Included in --all": "Not applicable",
      "Documented caution": "Take care if environments use symlinks to the package cache (Anaconda post)"
    },
    {
      "Flag": "--index-cache",
      "Short form": "-i",
      "What it removes": "Index cache",
      "Included in --all": "Yes",
      "Documented caution": "None stated on the page"
    },
    {
      "Flag": "--packages",
      "Short form": "-p",
      "What it removes": "Unused packages from writable package caches",
      "Included in --all": "Yes",
      "Documented caution": "Environments not listed by conda info --envs are not checked for symlinks back to the cache"
    },
    {
      "Flag": "--tarballs",
      "Short form": "-t",
      "What it removes": "Cached package tarballs",
      "Included in --all": "Yes",
      "Documented caution": "None stated on the page"
    },
    {
      "Flag": "--force-pkgs-dirs",
      "Short form": "-f",
      "What it removes": "All writable package caches",
      "Included in --all": "No",
      "Documented caution": "Breaks environments with packages installed using symlinks back to the package cache"
    },
    {
      "Flag": "--tempfiles PATH",
      "Short form": "-c",
      "What it removes": "Temporary files that could not be deleted earlier because they were in use",
      "Included in --all": "Yes",
      "Documented caution": "Takes one or more environment paths as its argument"
    },
    {
      "Flag": "--logfiles",
      "Short form": "-l",
      "What it removes": "Log files",
      "Included in --all": "Yes",
      "Documented caution": "None stated on the page"
    }
  ],
  "sources": [
    {
      "title": "Conda documentation: conda clean",
      "url": "https://docs.conda.io/projects/conda/en/stable/commands/clean.html",
      "accessed": "2026-11-18"
    },
    {
      "title": "Anaconda: When was the last time you checked how much disk space conda is using?",
      "url": "https://www.anaconda.com/?p=18231",
      "accessed": "2026-11-18"
    }
  ]
}