The AI Engineer's Model Disk Cleanup Guide: Hugging Face, Ollama & PyTorch
The ultimate 1,200-word field guide for AI developers and local LLM hobbyists to reclaim 200GB+ from Ollama, Hugging Face, PyTorch, and vLLM model weights.
Build artifacts, caches, and dependency folders
The ultimate 1,200-word field guide for AI developers and local LLM hobbyists to reclaim 200GB+ from Ollama, Hugging Face, PyTorch, and vLLM model weights.
Android Studio caches Gradle project indexes, VFS caches, and compiler artifacts. Invalidate and clear is safe.
Ansible stores temporary playbook execution modules and target host fact JSON caches in ~/.ansible/tmp. Clearing Ansible tmp is safe.
Astro web framework caches pre-rendered HTML pages and optimized Vite assets in .astro and dist. Learn how to clean Astro build cache.
The AWS CLI cache stores temporary IAM SSO session tokens and API responses. Deleting it is safe.
The Azure CLI (.azure) stores execution logs and MSAL auth tokens. Deleting old log logs is safe.
The Bun install cache stores downloaded npm tarballs and binary packages. Clearing it is safe and frees disk space.
The .cargo/git folder caches bare Git repository checkouts for Rust dependencies. Clearing the Cargo Git cache is safe.
The Carthage/Build folder contains compiled iOS & macOS framework dependencies (.framework / .xcframework). Deleting it is safe.
Clojure CIDER and Leiningen cache REPL output history and Maven jar artifacts. Deleting CIDER session cache is safe.
The ultimate 1,200-word field guide for DevOps engineers and cluster admins to reclaim 150GB+ from Kubernetes containerd layers, K3s storage, Jenkins workspaces, and Terraform caches.
The CocoaPods repos directory stores local git clones of the iOS podspec master repository. Clearing repos is safe.
Microsoft DeepSpeed saves distributed model training checkpoint states in global_step directories. Learn how to clean old DeepSpeed checkpoints.
The DENO_DIR folder caches remote TypeScript imports and compiled V8 code bytes. Deleting it is safe.
The ultimate 2,000-word terminal cleanup playbook for software engineers to reclaim 200GB+ from Docker, Xcode, npm, Cargo, and PyTorch.
Elasticsearch stores Lucene index segments and node cache data in data/nodes. Learn how to safely delete old indices via API.
The _build directory in Elixir project root holds compiled BEAM bytecode and Mix app dependencies. Clearing _build is safe.
The .fastai data folder caches downloaded computer vision and NLP training datasets. Purging FastAI datasets is safe.
The Flutter bin/cache directory stores compiled Flutter engine binaries, Dart SDK tools, and iOS/Android artifacts. Deleting it is safe.
Flutter caches engine C++ headers and native desktop platform wrappers in build/ephemeral. Clearing ephemeral cache is safe.
The gcloud CLI stores diagnostic logs and component installer caches. Deleting gcloud logs and staging cache is safe.
GitLab CI runners cache build artifacts and dependency archives in /var/lib/gitlab-runner/cache. Clearing runner cache is safe.
The .gradle/daemon folder stores log outputs and lock files from background Gradle build daemons. Deleting daemon logs is safe.
The Cabal store caches compiled GHC library dependencies. Purging old Cabal store packages is safe.
Jenkins CI stores extracted git source checkouts and build artifacts in job workspaces. Wiping idle job workspaces is safe.
Julia caches downloaded binary dependencies and dataset artifacts in ~/.julia/artifacts. Purging Julia artifacts is safe.
K3s caches lightweight Kubernetes binary images and container runtime layers in /var/lib/rancher/k3s. Clearing stale data is safe.
kubectl caches Kubernetes cluster API OpenAPI schema definitions in ~/.kube/cache. Clearing kubectl HTTP cache is safe.
containerd stores downloaded OCI container image layers in /var/lib/containerd. Pruning unused image layers is safe.
Lerna monorepo manager caches package build outputs and task graphs in .lerna and node_modules/.cache/lerna. Clearing Lerna cache is safe.
LM Studio stores downloaded GGUF format Large Language Models. Deleting model files removes downloaded LLMs.
LoRA (Low-Rank Adaptation) fine-tuning stores low-rank parameter delta weights in adapter_model.safetensors. Learn how to manage LoRA weights.
Xcode stores downloaded offline developer API documentation sets (.docset). Deleting offline documentation sets is safe.
The ultimate 1,400-word master field guide for iOS, macOS, Swift, Flutter, and React Native engineers to reclaim 100GB+ from Xcode DerivedData, simulators, and archives.
CoreSimulator stores virtual disk images and cached app data for iOS, watchOS, and tvOS simulators. Deleting old devices is safe.
The ibdata1 file stores the InnoDB system tablespace, undo logs, and change buffers. Learn how to shrink ibdata1 safely.
The Maven Wrapper folder caches downloaded Maven zip distribution binaries. Deleting old wrapper dists is safe.
MongoDB stores write-ahead journal files in data/journal to ensure write durability. Learn when and how to safely clear MongoDB journals.
Neo4j stores transaction logs for database recovery and cluster replication. Learn how to prune old Neo4j transaction logs safely.
Nim generates C source files and object binaries inside nimcache folders during compilation. Deleting nimcache is safe.
The nvm .cache folder stores downloaded Node.js release tarballs and headers. Purging the nvm cache is completely safe.
Nx monorepo tool caches task execution outputs in .nx/cache. Learn how to safely reset and clear local Nx computation cache.
OPAM caches tarball archives of downloaded OCaml library packages. Clearing OPAM download cache is safe.
Ollama stores JSON model registry manifests mapping GGUF model layers. Deleting manifest cache is safe.
Oracle Database stores diagnostic trace files (.trc, .trm) and incident dumps in Automatic Diagnostic Repository (ADR). Clearing old trace files is safe.
Pipx creates isolated Python virtual environments for CLI tools. Deleting pipx environments uninstalls those CLI tools.
The pnpm state folder logs update checks and global command logs. Deleting pnpm state files is safe.
The pypoetry folder caches downloaded Python wheel package artifacts and virtualenv metadata. Deleting Poetry cache is safe.
Prisma downloads Rust query engine and migration engine binaries into this cache. Deleting Prisma engine binaries is safe.
Pulumi CLI caches historical infrastructure state file backups (.json.bak) in ~/.pulumi/backups. Clearing old state backups is safe.
R language stores downloaded CRAN statistical packages in R/win-library. Cleaning unused R packages is safe.
Remix web framework caches route manifests and server-side render assets in .cache/remix. Deleting Remix build cache is safe.
The Ivy2 cache stores compiled Scala JAR dependencies and SBT build artifacts. Clearing it is safe.
The .config/solana folder stores Solana CLI transaction history, test validator ledgers, and keypair files. Use caution.
SolidJS and SolidStart frameworks cache compiled reactive components and server route manifests in .solid and dist. Clearing SolidJS build cache is safe.
SQL Server database transaction logs (.ldf) grow infinitely if full recovery mode backups are not managed. Shrinking LDF logs requires caution.
SQLite database WAL (.wal) and shared memory (.shm) files enable concurrent reads and writes. Learn when it is safe to delete WAL files.
Storybook caches webpack/vite component story bundles. Clearing storybook cache is safe.
Tauri compiles Rust backend binaries and web view wrappers inside src-tauri/target. Deleting the target directory is safe.
TensorBoard records loss metrics, learning rate curves, and model graph visualizations in events.out.tfevents files. Clearing TensorBoard logs is safe.
tfhub_modules caches pre-trained neural network weights downloaded via TensorFlow Hub. Deleting it is safe.
The tokenizers cache stores BPE vocabulary files for LLM models. Deleting tokenizer cache files is safe.
NVIDIA Triton Inference Server caches compiled TensorRT engines and model repository artifacts in /var/tmp/triton. Clearing Triton cache is safe.
Unity Hub stores downloaded Unity Editor installation installers and build target modules. Purging downloaded installers is safe.
Vagrant stores downloaded base virtual machine images (.box) in ~/.vagrant.d/boxes. Pruning old Vagrant boxes is safe.
The .vitepress/cache directory caches Markdown parsing and Vite bundle artifacts. Deleting .vitepress/cache is safe.
The vLLM cache stores downloaded Hugging Face LLM model weights and kv-cache buffers. Deleting vLLM model cache is safe.
Weights & Biases (wandb) caches local experiment runs, media artifacts, and stdout logs in wandb/run-*. Learn how to clean wandb local caches.
The .wasmer cache stores pre-compiled WebAssembly (.wasm) bytecode modules. Deleting Wasmer cache is safe.
The whisper cache stores downloaded OpenAI speech-to-text neural network weights (.pt). Clearing the Whisper cache is safe.
Yarn v1 and Yarn Berry cache npm package zip archives locally. Clearing the global cache is safe.
The Zig compiler caches LLVM IR bitcode and C translation artifacts in ~/.cache/zig. Clearing Zig global cache is safe.
The .astro folder stores auto-generated TypeScript content collection definitions and build caches for Astro projects. Deleting .astro is safe.
The node_modules/.cache/babel-loader folder caches transpiled JavaScript & JSX files. Deleting it is safe and resolves stale transpilation errors.
The target/ folder contains compiled Rust binaries and incremental build artifacts. Deleting it via cargo clean is safe and restores gigabytes of space.
~/Library/Caches/CocoaPods caches downloaded iOS and macOS pod dependencies. Clearing it via pod cache clean --all is safe.
The ~/.composer/cache directory holds cached zip archives and git clones for PHP Composer packages. Deleting Composer cache is safe.
The Conda pkgs folder stores extracted tarballs and package downloads for Python environments. Clearing it via conda clean --all is safe.
The ~/.cache/Cypress folder stores downloaded Electron & browser test runner binaries for Cypress. Deleting Cypress cache is safe.
Docker overlay2 stores container images, layers, and stopped volumes. Deleting unused layers via docker system prune is safe and recovers tens of gigabytes.
The _build and deps folders store compiled Erlang BEAM files and Elixir dependencies. Deleting them is safe and restores clean build states.
The .eslintcache file stores linting results for JavaScript/TypeScript files. Deleting it is safe and forces a fresh code lint pass.
~/.cache/go-build and $GOPATH/pkg/mod store compiled Go packages and modules. Running go clean -cache is safe and reclaims lost storage space.
.gradle/caches stores downloaded Java and Android build dependencies. Deleting it is safe and reclaims gigabytes of unneeded build artifacts.
The ~/.cache/helm directory stores cached Kubernetes Helm charts and repository indexes. Deleting Helm cache is safe.
~/.cache/huggingface stores downloaded AI models, transformers, and datasets. Deleting old model caches is completely safe and reclaims massive disk space.
The ~/.cache/huggingface/hub folder stores cached AI model weights and tokenizer files. Purging old model revisions via CLI is safe.
The Jupyter runtime folder stores active kernel connection JSON files and notebook session logs. Deleting runtime logs is safe.
The .m2/repository folder caches downloaded Java dependencies for Maven and Gradle. Deleting it is safe and reclaims gigabytes of unused jar files.
The Archives folder stores compiled app build packages (.xcarchive) generated for App Store submission. Deleting old archives is safe.
iOS DeviceSupport stores symbol files for physical iOS devices attached to Xcode. Deleting old iOS version support files is safe.
The ~/.minikube/cache folder stores Kubernetes VM ISO images and pre-loaded container images. Deleting minikube cache is safe.
MySQL binlog.* files store transaction replication logs. Purging old binary logs via PURGE BINARY LOGS is safe and recovers server storage.
The .next/cache folder stores compiled pages, images, and SWC build artifacts for Next.js apps. Deleting it is safe and resolves stale page builds.
The ~/.nuget/packages folder caches downloaded C# and .NET NuGet packages. Clearing it via dotnet nuget locals all --clear is safe.
The ~/.ollama/models folder stores local GGUF model blobs (Llama, Mistral). Deleting unneeded models via ollama rm is safe.
The pip cache stores downloaded Python wheel and tar.gz package archives. Deleting it via pip cache purge is safe and reclaims lost storage space.
The ms-playwright folder stores downloaded Chromium, Firefox, and WebKit test binaries for Playwright. Deleting it is safe and reclaims space.
The pnpm global content-addressable store caches hard-linked packages. Pruning unreferenced packages via pnpm store prune is safe and frees storage.
The Podman storage directory holds rootless container images, layers, and volumes. Cleaning it via podman system prune is safe.
pg_wal stores PostgreSQL Write-Ahead Logs for crash recovery and replication. Do NOT manually delete pg_wal files; use pg_archivecleanup.
.venv and venv folders hold isolated Python packages for a project. Deleting them is safe and they can be recreated anytime using requirements.txt.
The ~/.cache/torch folder stores pre-trained PyTorch neural network model weights (.pt and .pth). Deleting model weights cache is safe.
dump.rdb is a point-in-time point snapshot of your Redis database memory. Use caution before deleting as it contains persistent database keys.
The RubyGems cache stores downloaded gem archives and old gem versions. Clearing RubyGems cache is safe and frees up drive space.
.build and .swiftpm folders store compiled Swift packages and build artifacts. Deleting them is safe and resolves Xcode package resolution bugs.
The .terraform folder stores downloaded cloud provider binaries (AWS, Azure, GCP). Deleting it is safe and forces a clean terraform init.
The .turbo folder stores build task caches for Turborepo monorepos. Deleting .turbo is safe and forces a fresh clean monorepo build.
AssetCache stores imported Unity Asset Store packages and shader artifacts. Deleting it is safe and recovers lost space on Unity game developer drives.
The node_modules/.vite folder caches pre-bundled ES modules for Vite dev servers. Deleting it is safe and fixes stale dev server HMR bugs.
The wandb folder stores local experiment run logs, media artifacts, and model checkpoints. Clearing wandb cache is 100% safe.
The node_modules/.cache/webpack folder stores compiled JavaScript bundles and module graphs. Deleting it is safe and resolves stale build errors.
ext4.vhdx is the virtual disk for Windows Subsystem for Linux (WSL2). Shrinking or compacting it is safe and recovers tens of gigabytes of unassigned space.
DerivedData stores Xcode build indexes, intermediate object files, and module caches. Deleting it is safe and is a standard fix for Xcode build bugs.
The ext4.vhdx file is a massive virtual hard drive used by Docker and WSL2 on Windows. Deleting it will permanently destroy all your containers and databases.
The hidden folder containing the entire version control history of a code repository. Deleting it destroys all past commits and branches.
The .idea and .vscode folders store your personal IDE workspace settings. Deleting them is safe, but it will wipe your editor layouts and local configurations.
The npm-cache folder stores compressed copies of Node.js packages you download. It is completely safe to nuke if you need space or are facing weird build errors.
The __pycache__ folder contains compiled Python bytecode designed to make your scripts run faster. It is completely safe to delete.
node_modules contains downloaded dependencies for JavaScript projects. It can always be regenerated with npm install.