Skip to cookie settings

Mac log files: where they are and which are safe to delete

Old log files are safe to remove, but they rarely hold much space. Here is where they live and what to leave alone.

Part of: What can I safely delete on my Mac? Safe, risky and never (Safe to delete)

Old log files are safe to delete, mostly. They are plain records of what apps did, and apps write new ones when they need to. You only lose history that helps when diagnosing a problem. Logs also rarely take much space, so check the size first.

Where logs live

Three places matter:

  • ~/Library/Logs: logs from your own apps and tools. This is the one to look at.
  • /Library/Logs: logs shared by the whole Mac, written by system-level software.
  • /private/var/log: logs from system services, managed by macOS.

Crash reports are kept in a DiagnosticReports folder inside ~/Library/Logs, and in the same place under /Library/Logs.

Check the size of your user logs with this read-only command:

du -sh ~/Library/Logs

List what is inside, largest last:

du -sh ~/Library/Logs/* | sort -h

To open the folder in Finder:

open ~/Library/Logs

What you lose by deleting logs

A log is a history, not something the app needs to run. If you delete one:

  • The app creates a new log next time it writes one.
  • You lose the record of past errors. That only matters if you are chasing a problem right now, or if someone, like a support team, asks for the log.
  • Crash reports for old crashes are gone.

Nothing stops working, and no data is lost. If you are in the middle of troubleshooting, keep the logs until you are done.

What to leave alone

  • System logs under /private/var/log and /Library/Logs. macOS rotates and removes old entries itself. These folders may need administrator rights, which is a sign they are not yours to tidy.
  • A log an app is writing right now. Quit the app first, or leave that file.
  • Folders that are not logs. Some apps keep other data in a folder named Logs. If a name does not look like a log file, open it before you decide.

How to remove old logs

  1. Run du -sh ~/Library/Logs/* | sort -h and look at the largest items.
  2. Quit the apps that own them.
  3. Move the old files to the Trash. Keep recent ones if you are chasing a problem.
  4. Empty the Trash. The space comes back only then. See why the Trash does not free space.

Do not expect much. If your total is small, other folders are a better use of your time, such as caches.

What crash reports are for

When an app crashes, macOS can write a short report in DiagnosticReports. Developers use these to find bugs, and the reports can be sent to Apple or to the app’s maker. Once a crash is fixed or forgotten, the report has no further use on your Mac. Each file is small, and a long-lived Mac can still collect a lot of them. If the same app keeps crashing, keep its recent reports until you have told its developer or found a fix.

The Safe / Risky / Never box

Item Label What breaks if it goes
Old files in ~/Library/Logs Safe You lose history that helps when diagnosing problems.
Old crash reports in DiagnosticReports Safe Same: past crash details are gone.
The log of an app that is still open Risky The app may error or write a partial log. Quit it first.
Logs you need for a support case Risky You cannot send them later. Keep them until the case is closed.
/Library/Logs by hand Never (by hand) System-wide software expects to manage it.
/private/var/log Never (by hand) System services write there, and macOS rotates it.

Why deleting logs rarely helps

On many Macs, logs are small compared with caches, app data or media. That is why this is rarely the first thing to clear. Look at the size first, as above. If it is tiny, leave it and look for bigger things in What can I safely delete on my Mac?.

Common mistakes

  • Treating logs as the main space hog. Check the size first. Most of the time, caches or app data are far larger.
  • Deleting logs before sending them to support. Keep them until the case is closed.
  • Removing system log folders with administrator rights. macOS rotates its own logs. Hand-deleting them gains little.
  • Leaving the app open. An app that is writing a log can keep the file in use.

Quick checklist

  1. Check the size with du -sh ~/Library/Logs.
  2. If it is small, skip this and look at larger folders.
  3. If it is large, find the biggest files and quit their apps.
  4. Move old files to the Trash, then empty it.

Check what is large

DiskJoy is our product. It scans your disk and shows reclaimable space by category, including logs. It is read-only today, and cleanup is not available yet. The scan can show whether logs are worth your time on your Mac.

Frequently asked questions

Is it safe to delete log files on a Mac?

Yes for old logs in your own ~/Library/Logs folder. They are records of what apps did, and apps write new ones. You lose history that only helps when you are diagnosing a problem.

Where are log files on a Mac?

Your own are in ~/Library/Logs. System-wide ones are in /Library/Logs and /private/var/log. Crash reports are in the DiagnosticReports folder inside Logs.

Is it safe to delete Library logs on a Mac?

Yes, the old ones in your user Library. Leave the system-wide folders to macOS, and quit the app first if it is still writing its log.

Tags:LogsLibrarymacOS storage

See what’s taking up space on your Mac

DiskJoy explains every item and removes nothing until you review it.
Download for Mac

Cookies on diskjoy.com

Your browser sends a Global Privacy Control signal. We honoured it: analytics and marketing cookies are off.

Necessary cookies run this site. Analytics shows us how it is used: if you accept it, Google receives data about your visit. Change this anytime in Cookie Settings. How Google uses data Cookie Policy Privacy policy

Customize

Purpose
Needed for the site to work and to remember your cookie choice.

Cookies

  • sy_consent - Stores your cookie choice (Retention: 12 months)

Other browser storage

  • sy_consent_pending (localStorage) - Queues your choice until it reaches our server (Retention: until deleted)
Purpose
Show us which pages are visited and how the site is used, so we can improve it. Provider: Google Ireland Ltd (Google Analytics 4).

Cookies

  • _ga - Distinguishes visitors to count them (Retention: 400 days)
  • _ga_TP2XMLG27P - Keeps the state of your current visit (Retention: 400 days)

Recipients

Data controller

Sylentis Group sp. z o.o.. Contact: support@diskjoy.com. Privacy policy

Google may process data outside the European Economic Area (EEA). Safeguards: EU-US Data Privacy Framework, standard contractual clauses.

Right to withdraw

You can withdraw consent at any time, as easily as you gave it. Withdrawal does not affect the lawfulness of processing before it.