Seems like there are around 5,000 wifi logs, each 2MB each, totaling nearly 10GB on my disk in /private/tmp
. Can I delete these logs, or will macOS automatically delete them itself? I tried making a file using the mkfile
command until I had about 2GB of disk space left, but nothing was automatically cleared.
Can Logs in the /private/tmp Folder Be Deleted?
hard drivelogs
Related Question
- 135GB of Hidden Space + Snapshot Metadata Tree Invalid error in Disk First Aid
- MacOS – delete StoreData found at /private/var/log/powermanagement/StoreData
- Mac – Large amount of disk used by “System”. Time machine not to blame. What’s taking up so much space
- macOS Wi-Fi – How to Stop Debug Logging in /private/tmp
- How to determine what is causing Mac Pro to automatically log out and where to find logs of logout events
- Filesystem – Is It Safe to Delete /private/var/tmp/*?
Best Answer
In the standard configuration, launchd will run the "periodic-daily" script once a day with a low priority. The periodic-daily script will run the /etc/periodic/daily/110.clean-tmps script, which in turn removes the files in /tmp (which is the same as /private/tmp) that haven't been accessed for 3 days.
So normally these log files will be deleted every 3 days, unless ofcourse something is still writing to them - or you yourself are opening them all the time to check them.
You do not specify the file name of the files you're worrying about. Normally it should be safe to just delete log files in /private/tmp/.