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

Do not delete/private/var/folders

No. /private/var/folders holds the temp and cache folders apps are using right now. What is inside, why it grows, and the safe way to shrink it.

Updated 16 November 2026 · 4 min read

Verdict: Do not delete. /private/var/folders holds the private temporary and cache folders that macOS and your apps are using right now, so deleting it, or clearing it by hand, can make running apps crash, lose unsaved work or fail to update. Restart instead: macOS clears old temporary files itself, and anything left over can be removed one item at a time.

This folder can look shocking in a disk map. The size is real, but the fix is almost never a delete.

What lives in /private/var/folders

Every user account on the Mac gets a folder here with a random-looking two-level name, something like /private/var/folders/ab/abc123.../. /var is a shortcut to /private/var, so you'll see both spellings. Inside your folder are a few subfolders:

  • T is your temporary items folder, the one apps get when they ask for $TMPDIR or the system temporary directory. Apple's developer documentation describes it as the temporary directory for the current user.
  • C is your per-user cache folder, used by macOS services and some apps.
  • 0 and X are used by macOS for other private working files.

The confstr man page on macOS describes the temporary and cache folders and notes that each one "will be created if it does not already exist", with permissions that only your account can read.

On the macOS 15.5 Mac we checked this on, du reported 65 GB for that user's folder: 2.6 GB in C, 1.8 GB in T and 60 GB in X, almost all of it one folder named after a web browser's code-signing clone. du counts APFS clones at their full size, so the space it really takes can be lower than that figure.

What happens if you delete it

  • Running apps break. Open documents, exports, downloads and installers often write into T as they work. Removing those files mid-task can crash the app or leave it unable to save.
  • Caches rebuild. Whatever was in C is fetched or rebuilt later, slowly.
  • macOS recreates the folders, because the system creates them whenever they are missing. But anything that was using them at the time can fail, and you may need a restart to get back to normal.

Nothing important is stored here for good, which is exactly why there's no need to force it. Your documents and app data live elsewhere.

How to check its size safely

These commands only read. To see the total for your own folder:

du -sh "$(dirname "$TMPDIR")"

To see which subfolder is large:

du -sh "$(dirname "$TMPDIR")"/* 2>/dev/null | sort -h

To print the exact paths of your temporary and cache folders:

getconf DARWIN_USER_TEMP_DIR
getconf DARWIN_USER_CACHE_DIR

To look at your temporary folder in Finder, run open "$TMPDIR" in Terminal, then use View > as List and View > Show View Options > Calculate all sizes. Other users' folders and the system's own are off limits without an administrator password, and you don't need them.

The safest way to get the space back

  1. Save your work and restart. macOS runs a helper called dirhelper at start-up and every night. On macOS 15.5 its launch settings include CLEAN_FILES_OLDER_THAN_DAYS=3, which is why a restart often shrinks T noticeably.
  2. Measure again with the du command above.
  3. If one item in T is still large, find out which app made it. Quit that app, then move only that item to the Bin. Open the app again to check it works.
  4. If one app keeps refilling it, update or reinstall that app. A folder that regrows after every restart is usually a bug in that app.
  5. Empty the Bin when you are happy.

Warning: never run rm -rf or sudo rm on /private/var/folders or anything above your own T folder. Other users' folders and the system's are in use by processes you can't see, and a deleted file there cannot be brought back.

What never to touch

  • /private/var/folders itself, and the two-letter folders inside it.
  • Other users' folders and the system's.
  • C, 0 and X, even in your own folder. Leave them to macOS.
  • Items whose names start with com.apple. in T.
  • Anything while the app that made it is open.

Two other system locations come up in the same searches: /private/var/vm, where swap and the sleep image live, and /Library/Caches. Both belong to macOS too. Our guide to System Data on a Mac explains why temporary files count towards that figure.

How Headroom helps

Headroom's Space map shows your own folder here as "System temp files", with its size, so you can see when it is the problem. Clean then lists items in your own temporary folder (T) that haven't been touched for at least a week, skipping anything named com.apple., and deletes them for good because they are leftovers. It never touches C, 0, X, other users' folders or the system's. The scan and map are free; the $19 one-time licence clears what you tick. See the cleaner or download Headroom.

Questions

What is /private/var/folders on a Mac?

It holds each user's private temporary and cache folders. macOS gives every account a folder there with a random-looking name, and apps write scratch files and caches into it while they run. /var is a shortcut to /private/var.

Why is /private/var/folders so big?

Apps leave temporary files behind, especially after crashes, large exports and updates, and some keep sizeable caches there. A single app can account for most of it, so check which subfolder is large before doing anything.

Does restarting clear /private/var/folders?

Often, for the temporary part. macOS runs a helper called dirhelper at start-up and every night, and on macOS 15 its settings tell it to clean files older than three days. It is not a full clear-out, so measure again afterwards.

Can I delete the T folder in /private/var/folders?

Not the folder itself, and not while apps are running. If one leftover item in your own T folder stays large after a restart, quit the app it belongs to and move that item to the Bin.