ThisCalculator

Everyday

Free Up Storage for Windows AI Models Without Deleting Components

Updated · Standard formula, shown below

Free Up Storage for Windows AI Models Without Deleting Components

Running large AI models locally on Windows can quickly eat up tens of gigabytes of drive space, but you don’t have to remove system components or disable Windows features to reclaim it. This guide shows safe, reversible ways to clear space specifically for AI model files—by moving them, compressing them, and cleaning up the temporary files they generate—so your system stays intact and your models keep working.

What You’ll Need

  • An external drive, second internal drive, or a network share with enough free space to hold your largest AI model folder (check its size first).
  • Administrator access on Windows (for moving files outside your user folder or changing system environment variables).
  • 7-Zip (free) or another archive tool that supports solid compression (for the optional compression step).
  • About 30 minutes of your time, depending on how many models you have.

Step-by-Step

  1. Find where your AI models are stored. Common locations include C:\Users\YourName\AppData\Local\ (for tools like Ollama, LM Studio, or Stable Diffusion), C:\Users\YourName\.cache\ (for Hugging Face transformers), or a custom folder you created. Open File Explorer and navigate to each likely spot. If you’re unsure, search for large files using File Explorer > This PC > Search and type size:>1GB.
  2. Check the actual size of each model folder. Right-click the folder, select Properties, and note the size. This tells you how much you need to free up and which models are the biggest offenders.
  3. Move the largest model folders to another drive. This is the single most effective step. Cut (Ctrl+X) the folder, paste it on your external or secondary drive, then create a symbolic link (a shortcut that Windows treats as the real folder) back to the original location. Open Command Prompt as Administrator and run:
    mklink /J "C:\original\path" "D:\new\location"
    For example: mklink /J "C:\Users\You\AppData\Local\Ollama\models" "D:\AI_Models\Ollama". Now the AI tool still finds its files at the original path, but they’re physically on the other drive.
  4. Change the default download location for new models. Many AI tools let you set a custom model directory in their settings. For example, in Ollama, set the environment variable OLLAMA_MODELS to your new drive path (via System Properties > Environment Variables). In LM Studio, go to Settings > Model Locations and add your external folder. This prevents future models from filling up C: again.
  5. Delete leftover temporary files from model downloads. AI tools often leave partial downloads, cache files, and logs. Open the Run dialog (Win+R), type %temp%, and delete everything inside (skip files in use). Also check C:\Users\YourName\AppData\Local\Temp and the tool-specific cache folders (e.g., .cache\huggingface). Use the built-in Disk Cleanup (search for it in Start) to clear system temp files too.
  6. Compress model files you rarely use. If you have older models you only load occasionally, archive them with 7-Zip using the Ultra compression level and the LZMA2 method. This can shrink them by 20–50%. Store the archive on your other drive. When you need the model, extract it to the original folder (or a temporary folder and point the tool to it).
  7. Use Windows Storage Sense to auto-clean. Go to Settings > System > Storage, turn on Storage Sense, and configure it to delete temporary files and clean up the Recycle Bin automatically. This won’t touch your models but keeps the rest of the drive from filling up.
  8. Move the Windows page file (if you have a second drive). This is a system file, not a component, and moving it frees up space on C:. Go to System Properties > Advanced > Performance > Settings > Advanced > Virtual Memory, uncheck Automatically manage, select C:, choose No paging file, then select your other drive and set a System managed size. Restart. This can free several GB. (Only do this if you have a reliable second drive.)

Common Mistakes

  • Deleting model files instead of moving them. If you delete a model, you’ll have to re-download it, which wastes bandwidth and time. Always move first.
  • Using a regular shortcut instead of a symbolic link. A normal shortcut won’t fool the AI tool—it will still try to read the original folder. You need a directory junction (mklink /J) which works at the file system level.
  • Forgetting to update environment variables. If you move a model folder but don’t update the tool’s path settings, it will re-download everything to C:.
  • Compressing a folder while the AI tool is running. This can cause file corruption. Always close the AI application before zipping or moving.
  • Cleaning temp files without checking for active downloads. You might delete a partially downloaded model that you intended to keep. Check the file size and modification date first.

Tips

  • Before moving a large folder, verify the destination drive has enough free space—right-click the drive and check Properties.
  • If you use multiple AI tools, consider centralizing all models on one external drive and creating junction links for each tool’s default folder.
  • Use a tool like TreeSize Free or WinDirStat to visualize which folders are taking up the most space—this helps you spot hidden caches.
  • For Hugging Face models, you can set the HF_HOME environment variable to a new location to keep all downloads off C:.
  • If you’re short on space but have a second drive, consider moving your entire user profile folder (C:\Users\YourName) to that drive—Windows supports this, but it’s more involved; only attempt if you’re comfortable with system settings.

Troubleshooting

  • The AI tool can’t find the model after moving. Double-check the junction link: open Command Prompt and type dir in the original folder—if you see the model files listed, the link works. If not, remove the link and recreate it with the correct paths. Also ensure the destination drive is connected and accessible.
  • You get an “Access Denied” error when creating a junction. Make sure you’re running Command Prompt as Administrator. Also, the destination folder must exist; if not, create it first.
  • Model downloads still go to C: despite changing settings. Some tools cache in multiple places. Check the tool’s documentation for all relevant environment variables (e.g., TRANSFORMERS_CACHE, TORCH_HOME). Also restart the tool after changing settings.
  • Compressed archive won’t extract fully. If you get a CRC error, the archive is corrupted. Re-compress the folder, and make sure the drive has enough space for the extracted files.
  • Windows won’t let you move the page file. If the option is greyed out, you may have a system-managed paging file on multiple drives. Set C: to No paging file, then set the other drive to System managed, then click Set and restart. If it still fails, check that the other drive is formatted as NTFS.
  • After moving, the model loads very slowly. This is normal if you moved it to an external USB drive. For better performance, use an internal drive or a fast USB 3.0+ connection. If speed is critical, consider keeping the most-used models on C: and moving only rarely used ones.

Frequently Asked Questions

  • Will moving a model folder break the AI tool? No, as long as you create a junction link that points to the new location. The tool sees the same path as before.
  • Can I delete the Windows.old folder to free space? Yes, but that’s a system component—this guide focuses on AI files. If you’re desperate, you can use Disk Cleanup to remove it, but it’s not necessary for AI models.
  • How much space can I realistically free up? It depends on your models. A typical 7B parameter model is ~4GB, a 13B is ~8GB, and a 70B can be 40GB+. Moving 2–3 large models can free 20–80GB.
  • Do I need to reinstall the AI tool after moving models? No. The junction link makes the original path still valid, so the tool works as if nothing changed.
  • Is it safe to compress a model and delete the original? Yes, if you keep the archive on a reliable drive and verify it extracts correctly. Just remember you’ll need to extract before using the model.
  • Will moving models affect their performance? Slightly, if you move to a slower drive (e.g., HDD vs SSD). For loading large models, an NVMe SSD is best. If you move to an external drive, expect longer load times.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.