New Tool Radar

Local AI

How to Delete Downloaded MLX Models to Free Disk Space

List downloaded MLX models and delete the ones not needed, then confirm the disk space is back.

Schematic with three steps: Scan what is stored; Delete the models you do not need; Confirm the space is back.

MLX models download on first use into the Hugging Face cache, and a 4-bit 7B model is several gigabytes. Old models pile up fast, so scan what is stored and delete the ones you no longer use.

What you need

  • A Mac with Apple Silicon and mlx-lm installed
  • A terminal with the virtual environment activated
  • A note of which models you still use

Step 1: Scan what is stored

Run mlx_lm.manage –scan to list the MLX models on disk and their sizes. Note which ones you still use and which ones are old tests.

Step 2: Delete the models you do not need

Run mlx_lm.manage –delete –pattern with a pattern matching the model you want to remove, for example –pattern Mistral. Repeat for each model you no longer need.

Step 3: Confirm the space is back

Run mlx_lm.manage –scan again and check the deleted models are gone, then check the free disk space. Keep the models you still use; a deleted model must be downloaded again.

Worked example: synthetic model clean-up

The table below is a synthetic example. It shows the expected result of deleting models; no model was deleted.

Model Size Action
Mistral-7B-Instruct-4bit Several GB Delete, no longer used
Llama-3.2-3B-4bit Several GB Keep, still used
Old test model Several GB Delete, old test

Expected result (UNTESTED). the scan lists the stored models, the unused ones are deleted, and a second scan confirms they are gone and disk space is freed. This check was not run live; the table shows the expected result for the synthetic example.

Limits

  • There is no undo; a deleted model must be downloaded again to use it.
  • The –pattern option matches by name, so check the pattern matches only the model you mean to delete.
  • Models download into the Hugging Face cache by default, so a custom HF_HOME moves them elsewhere.

Sources

See all