1

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.

2

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/.

  • Thanks, although strangely it seems as if the oldest files are from the 24th, around 4 days ago (even though I haven't myself accessed them). – Skeleton Bow Jun 28 '17 at 21:15
  • 1
    It is not the age of the file that determines when they are deleted - it is their last access time. So if a program has the file open and for example continually logs to the file or even just reads from the file - it will be kept around. – jksoegaard Jun 29 '17 at 12:04
1

Follow this info to get your scripts to run (important if you don't leave your Mac on all the time).

http://www.thexlab.com/faqs/maintscripts.html

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .