What lives there
Each user account on the Mac gets a folder inside /private/var/folders with a random-looking two-level name. Inside it, T holds temporary items, C holds caches and 0 holds per-user data for system services; other folders can appear alongside them. Apps and macOS put working files there that they don’t want in your Library. The path starts with /var because /var is a link to /private/var.
Apple’s File System Basics guide lists /var among the Unix folders Finder hides, describing it as the home of log files and other files whose content is variable. Apple’s Storage settings include temporary files and caches in System Data. That category contains other data too, so this folder’s measured size is not a complete System Data total.
How macOS cleans it
The confstr manual on your Mac (man confstr) documents the two folders apps are meant to use. Files in the temporary items folder may be removed by the system if they are not accessed in 3 days. The cache folder is not cleaned automatically, but its files are removed during a safe boot.
Apple’s safe mode article says the same thing from the other side: starting in safe mode clears some system caches, which are created again as needed. Safe mode is a troubleshooting step, not a promise to empty all of /private/var/folders or permanently recover a particular amount of space.
1. Measure your own folders without hiding errors
Open Terminal in Applications → Utilities. The first command group locates your account’s temporary and cache folders and measures their totals. The checks stop the command if a path lookup fails or returns nothing. These commands do not delete files; getconf may create the standard per-user directory if it does not already exist.
A successful du -sh prints one size and path per folder. The M and G suffixes use powers of 1024, so they may differ from Finder’s decimal display. These are allocated disk-use measurements, not a guarantee of space you could reclaim. Your account’s paths do not cover other users or every system-owned folder.
If you see Operation not permitted or Permission denied, the measurement is incomplete even when du also prints a total. Keep the error visible. Do not add sudo or discard errors just to get a cleaner number. A getconf error means the folder lookup itself failed; stop there rather than replacing it with a guessed path.
The final command group resolves the cache path again, then shows its immediate subdirectories and a total for the cache folder. Hidden directories are included. It still traverses the contents to measure them, so a large cache can take time; Control-C stops the measurement without deleting anything. The parent total already includes the child folders: do not add those rows together.
cleardisk_temp_dir="$(getconf DARWIN_USER_TEMP_DIR)" &&
cleardisk_cache_dir="$(getconf DARWIN_USER_CACHE_DIR)" &&
test -n "$cleardisk_temp_dir" && test -n "$cleardisk_cache_dir" &&
du -sh "$cleardisk_temp_dir" "$cleardisk_cache_dir"
cleardisk_cache_dir="$(getconf DARWIN_USER_CACHE_DIR)" &&
test -n "$cleardisk_cache_dir" &&
du -h -d 1 "$cleardisk_cache_dir"What our measurement test showed
On October 9, 2026, we tested du -h -d 1 on macOS 27.0.1 with generated files in a disposable sample-cache folder. It reported 2.0M for one subfolder, 512K for another, 256K for a hidden subfolder and 2.8M for the parent. The hidden folder appeared without a wildcard.
We then made an empty test subfolder unreadable. du still printed the accessible sizes and a parent total, but also reported Permission denied and exited with status 1. That is why this guide keeps errors on screen. A plausible-looking total does not establish that the scan was complete.
This test checked the command’s behavior, not the contents of a real system cache. We did not reboot into safe mode, delete cache files or measure recovered space. A separate getconf cache lookup was denied in our restricted test process; the guarded command stopped instead of scanning a fallback directory.
# Read-only demonstration, after creating your own sample-cache folder:
du -h -d 1 ./sample-cache2. Restart, then measure again
Quit your apps, restart, and run the same commands. Compare the same paths and check that neither run reported an access error. A lower total tells you that less space is allocated now; it does not identify which process removed files. If one app’s folder is still large, record its name and size.
An app that repeatedly fills this folder is behaving the way it was built to, or has a bug. Check for an update, look for a cache or temporary-file setting in the app, and contact its developer with the folder name and size if it keeps growing. A folder name can suggest an app, but it is not proof that its contents are disposable. Keep downloads and unsaved work in mind when asking the developer about cleanup.
3. Use safe mode for the cache folder
If the cache folder is the large one, start up in safe mode once, following Apple’s steps for your Mac, then restart normally. The confstr manual says files in that folder are removed during safe boot, and the apps that use it rebuild what they need afterwards.
Expect the first launch of some apps to be a little slower while they rebuild. If the same folder is large again within days, go back to step 2 and look at the app that owns it.
Why not to delete it by hand
Running apps and background services keep files open in these folders. Deleting them while you are logged in can crash apps, interrupt downloads or break services until the next restart, and a file that is still open keeps its space until the process using it closes anyway.
Commands that circulate online, such as removing everything under /private/var/folders with sudo, also delete other users’ files and system state. A restart or safe boot may help diagnose growth, but neither is equivalent to manually removing every file. Leave the parent folder and other users’ data in place.
Common questions
Is it safe to delete files inside /private/var/folders?
No, don't delete inside it by hand. Running apps and background services keep files open there, so deleting them while logged in can crash apps or interrupt downloads, and sudo commands that remove everything there also delete other users' files and system state.
Does macOS ever clean up /private/var/folders on its own?
Yes, partly. Files in the temporary items folder may be removed by the system if they haven't been accessed in 3 days, and the cache folder, while not cleaned automatically, has its files removed during a safe boot.
How do I find out which app is filling up /private/var/folders?
Resolve your own cache path with getconf, then use du -h -d 1 on that path to inspect immediate subdirectories. A bundle-style name can suggest an app. Keep permission errors visible: any skipped folder makes the result incomplete, and a recognizable name does not make its files safe to delete.
Restarting didn't shrink my /private/var/folders. What's next?
If a single app's folder is still large after a restart, that app may be behaving normally or have a bug. Check for an update or a cache setting in the app, or start up in safe mode once, since the cache folder is cleared during a safe boot.
References & further reading
These guides combine the linked official guidance with ClearDisk’s documented behavior. Your files and app settings determine the right next step.