FREE UP SPACE SAFELY

Is AI Filling Up Your C: Drive? Find and Clear Hidden AI Storage on Windows

Local AI models, model caches, Python environments, coding agents, Docker and WSL can eat tens of gigabytes. Find them and clear them safely on Windows.

By
8 min readIntermediate friendlyPublished Updated
Is AI Filling Up Your C: Drive? Find and Clear Hidden AI Storage on Windows: illustrated workflow

A year ago, a full C: drive usually meant games, videos or old downloads. Today it is just as likely to be AI. Running a model on your own PC means downloading a file that can be several gigabytes. AI coding assistants spin up new projects, branches and dependency folders in minutes. Containers and Linux environments for AI work live inside virtual disks that grow and rarely shrink. None of this shows up clearly in Settings → Storage, which lumps most of it into “Other” or “Apps”.

Find and clear AI storage
Illustrated AI storage clean-up order. Commands vary by tool and version.

This guide shows where each kind of AI data lives on Windows 11 and 10, how to measure it, and how to remove what you no longer need without breaking the tools you still use.

Why is AI filling up my C: drive?

AI tools are built to be fast, and speed usually means keeping things on disk: models are cached so they load instantly, packages are cached so installs are quick, and every project gets its own copy of its dependencies. The defaults put almost all of it in your user folder on C:, often in hidden folders that start with a dot.

Where AI tools store data on Windows
WhatDefault locationHow to check sizeSafe way to clean
Ollama models%USERPROFILE%\.ollama\modelsollama listollama rm <model>
LM Studio modelsShown in LM Studio under My ModelsMy Models tabDelete the model inside LM Studio
Hugging Face downloads%USERPROFILE%\.cache\huggingface\hubhuggingface-cli scan-cachehuggingface-cli delete-cache
pip package cacheRun pip cache dir to see itpip cache infopip cache purge
npm package cache%LocalAppData%\npm-cachenpm cache verifynpm cache clean --force
Python virtual environmentsInside each project (venv, .venv)Folder size in a storage analyzerDelete old venvs, recreate from requirements
node_modules foldersInside each JavaScript projectFolder size in a storage analyzerDelete in finished projects, reinstall when needed
Docker images and volumesInside Docker Desktop’s virtual diskdocker system dfdocker system prune
WSL Linux distributionsA virtual disk file (ext4.vhdx)Size of the .vhdx fileClean inside Linux, then let the disk shrink

How much space do local AI models take, and how do I remove them?

A local model is one large file. Depending on the model’s size and how heavily it is compressed (its quantization), a single model is often a few gigabytes and larger models run to tens of gigabytes. Trying out several models, or several versions of the same one, adds up fast.

With Ollama, list what you have and remove what you no longer use. Ollama shows the size of each model, so start at the top of the list:

ollama list
ollama rm llama3:70b

Replace llama3:70b with the name shown in your own list. Do not delete files inside the .ollama folder by hand: Ollama stores models as shared pieces, and the rm command removes only the pieces no other model uses. To keep future models off C:, set the OLLAMA_MODELS environment variable to a folder on another drive and restart Ollama.

In LM Studio, open My Models, check the size next to each model and delete the ones you no longer need from there. LM Studio also lets you change the models folder, which is the easiest way to move them to a larger drive.

How do I clear the Hugging Face cache on Windows?

Python tools that download models from Hugging Face, such as transformers, diffusers and many image and speech tools, save them in a shared cache. It keeps every version you have ever downloaded, so it grows quietly over time. To see what is inside and how big each item is, run:

huggingface-cli scan-cache

Then run the interactive clean-up, which lets you tick the models and revisions to remove:

huggingface-cli delete-cache

To move the cache to another drive in future, set the HF_HOME environment variable to a folder on that drive.

Why are Python environments so big for AI projects?

AI libraries are large, and GPU builds of frameworks such as PyTorch are especially large because they bundle GPU support. Each virtual environment gets its own full copy, so five experiments can mean five copies. On top of that, package managers keep a cache of everything they have downloaded.

  • Delete virtual environments (venv or .venv folders) in projects you have finished. If the project has a requirements.txt or pyproject.toml, you can recreate the environment later.
  • Clear the pip cache: run pip cache info to see its size, then pip cache purge.
  • If you use uv, run uv cache clean. If you use conda, run conda clean --all to remove unused packages and caches.

Are AI coding tools filling my drive with node_modules and worktrees?

AI coding assistants make it easy to start a new app, try three approaches and run several agents side by side. Every JavaScript project gets its own node_modules folder, which often holds hundreds of megabytes, and some tools give each agent or task its own Git worktree: a full extra copy of the project’s files.

  • Delete node_modules in projects you are not working on. Running npm install brings it back when you need it.
  • In each repository, run git worktree list to see extra worktrees. Remove finished ones with git worktree remove <path>, then run git worktree prune to clean up leftovers.
  • Check the npm cache with npm cache verify. If it is very large, npm cache clean --force clears it, and npm downloads packages again as needed.
  • Look for abandoned experiment folders, such as test projects an agent created, before deleting anything you still use.

Why doesn’t Docker or WSL give space back after I delete things?

Docker Desktop and WSL keep Linux data inside virtual disk files (.vhdx) on your Windows drive. These files grow as you add images, containers and files, but by default they do not shrink when you delete things inside them. So you clean up inside Linux and your C: drive does not get the space back.

For Docker, check what is using space and remove what is unused:

docker system df
docker system prune

docker system prune removes stopped containers, unused networks, dangling images and unused build cache. Adding -a also removes all images not used by a container, and --volumes removes unused volumes, which can contain data you want, so only add those once you have checked.

For WSL, clean up inside your Linux distribution first. Recent versions of WSL can then return freed space to Windows automatically if you turn on sparse mode for the distribution. Shut WSL down, then run the command with your distribution’s name (wsl --list shows it):

wsl --shutdown
wsl --manage Ubuntu --set-sparse true

What should you never delete by hand?

  • Files inside the .ollama models folder. Use ollama rm instead.
  • Virtual disk files (.vhdx) used by WSL or Docker, unless you mean to delete everything inside them.
  • A virtual environment or node_modules folder in a project you are running right now. Close the project first.
  • Anything under C:\Windows or C:\Program Files. Uninstall AI apps from Settings → Apps instead.

How do you find which AI folder is the biggest?

Most of these folders are hidden or buried inside your user folder, so File Explorer is a slow way to compare them. A storage analyzer scans the whole drive and shows every folder by size on one map. In a few seconds you can see whether .ollama, the Hugging Face cache, a Docker virtual disk or a forgotten pile of node_modules folders is what is really filling your drive, and start with the biggest one.

A 10-minute AI storage clean-up routine

  1. Scan your drive with a storage analyzer and note the five biggest AI-related folders.
  2. Remove local models you have not used this month with ollama rm or in LM Studio.
  3. Run huggingface-cli delete-cache and untick only the models you still use.
  4. Run pip cache purge (and uv cache clean or conda clean --all if you use them).
  5. Delete node_modules and virtual environments in finished projects, and prune Git worktrees.
  6. Run docker system df, then docker system prune if the unused total is large.
  7. Rescan the drive and compare. Move model folders to another drive if C: is still tight.

AI tools are not going away, and neither is the storage they need. The difference between a drive that fills up every month and one that does not is knowing where each tool keeps its data, and checking it before the warning appears.

Sources & further reading

Windows instructions checked against the official documentation linked here. Controls can vary by Windows version and device configuration.

YOUR NEXT STEP

Put your storage knowledge into practice.

Download WinPrune free for Windows 10 & 11, scan your drive, and see where your space goes.

Explore WinPrune Download free WinPrune Pro · $15.99 USD · One-time payment. No recurring billing.
KEEP EXPLORING

A little more context.

Storage Analyzer for Windows 11 and 10: Free Tools Compared

Compare the built-in Windows storage view with free storage analyzers like WinPrune, WizTree and WinDirStat, and find what fills your drive safely.

· 6 min

Windows Storage Analysis: See What Is Using Space on Your PC

Start with the whole drive, follow the largest categories, and learn which files deserve a closer look before you clean anything.

· 5 min

Find Large Files on Windows: A Practical Guide

Use Windows storage categories and File Explorer to narrow the search. A large file is a clue about disk usage, not a deletion instruction.

· 4 min

Keep exploring your storage.

Get a clearer view of your Windows storage. Start with the guides, then try WinPrune: the Free version scans your drive in about a minute.

Explore the Free and Pro tools
One-time payment · No recurring billing

Not sure yet? Download WinPrune free first

Secure checkout by Dodo Payments. Free download for Windows 10 & 11.
WinPrune 2.0 Treemap Canvas showing a scanned C: drive as colored blocks sized by folder, with Users, Windows and Program Files as the largest areas