What it is
macOS swap files (memory moved to disk) and the sleepimage used for deep sleep.
Can you delete it?
No, not by hand. macOS manages and recreates them. Deleting them while in use can crash apps. A restart clears swap.
How to clean it safely
- Restart the Mac to clear swap.
- Quit memory-heavy apps.
- Run:
sysctl vm.swapusage
How big is it on your Mac?
This read-only command prints its size and changes nothing:
Terminal
du -sh "/private/var/vm" 2>/dev/nullStep-by-step guide: What is System Data →
Related folders
- App containers ·
~/Library/Containers - Keychains ·
~/Library/Keychains - Group containers ·
~/Library/Group Containers - Apple Intelligence and system assets ·
/System/Library/AssetsV2 - Nix store ·
/nix/store - SSH keys ·
~/.ssh
Questions
Is it safe to delete /private/var/vm?
No, not by hand. macOS manages and recreates them. Deleting them while in use can crash apps. A restart clears swap.
Let the raccoon do it, safely
Junk Raccoon finds this clutter for you, shows every file first, and keeps a one-click way back. Free to download, no account, no ads.
Download for Mac