What is /private/var/folders on a Mac, and should I delete it?

/private/var/folders is where macOS and apps keep scratch files and caches for each user while they run, and you should not delete it by hand because macOS manages it.

Shiva ChandraMaker of Clean House · · 2 min read
Short answer

The folder holds temporary files that apps and macOS use while running. macOS clears what it no longer needs, so it is not something to remove by hand. If it looks large, quit big apps and restart the Mac, which is the supported way to let the system tidy it. Treat it as Keep.

Path
/private/var/folders (also reachable as /var/folders)
What it is
Per-user scratch space with temporary files and caches, in obscurely named subfolders
Typical size
Usually modest; can grow to several gigabytes when an app misbehaves
Made by
macOS and apps while they run
Safe to delete?
Keep macOS manages it. Restart instead of deleting.
Comes back?
Yes, as needed. macOS clears and recreates it.

What is in /private/var/folders?

Inside are two-letter and random-looking folder names. Each pair of folders belongs to a user account on the Mac. They contain temporary data in subfolders named T (temporary files), C (caches) and 0. Apps place working files here while they run: exports in progress, thumbnails, system caches and more.

To see the paths for your own account, you can run these read-only commands in Terminal.

getconf DARWIN_USER_TEMP_DIR
getconf DARWIN_USER_CACHE_DIR

Is it safe to delete /private/var/folders?

Do not delete it by hand. It is a system location, apps that are running keep files open there, and removing them can cause crashes, lost work in progress or odd behavior. macOS clears the temporary part on its own, typically when you restart.

The safe way to reduce it is to save your work, quit large apps, and restart the Mac. If it is still very large after a restart, one app is probably leaving files behind. Quit that app and restart again, and look at which app owns the biggest items.

How do I let macOS clear it?

  1. Save your work and quit your apps, especially video, photo and developer tools.
  2. Choose Apple menu, then Restart.
  3. Check Storage in System Settings afterward.
Do not use sudo rm on this folder. A restart gets the same result without the risk.

How Clean House handles it

Clean House lists /private/var/folders in the System Data view as Temporary files with the call Keep, and points to a restart as the fix. It does not offer it for cleaning, because system files are never offered.

Questions

Can I delete /private/var/folders?

No, not by hand. It is managed by macOS and in use by running apps. A restart lets the system clear it safely.

Why is /var/folders so large?

An app may be leaving temporary files behind, such as a large export or a failed update. Quit the app and restart.

What do the T and C folders mean?

T holds temporary files and C holds caches for your user account. macOS clears them as needed.

Sources

  1. Apple Support: Free up storage space on Mac