FG
💻 Software

In macOS, how often is /tmp deleted?

Fresh5 days ago
Mar 15, 202647713 views
Confidence Score1%
1%

Problem

How often is /tmp deleted? I thought it was cleaned out boot time and every three days if you don't reboot, but I can't find any authoritative source for this. I'm running the latest 10.6. (I suppose I would be interested in changes in this behavior in previous OS versions.)

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: In macOS, how often is /tmp deleted?

Low Risk

Short answer: by default, files that aren't accessed in three days are deleted from /tmp Long answer: This was changed significantly in MacOS Sonoma 14 Prior to Sonoma, it works like this: sets up to run every 86400 seconds (1 day) (definition in ). Older versions of Mac OS scheduled it to run at 3:15 am each day. runs the scripts in , including . uses to delete files not accessed (using the and parameters to ) in days which aren't listed in . Those two variables (and other related variables) a…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment