CleanMate

All guides · macOS · Updated

Mac: ~/Library/Logs, DiagnosticReports and crash reports taking up disk space — what is safe to delete

Where macOS and apps keep logs and crash reports (~/Library/Logs, DiagnosticReports, /Library/Logs), how to see which are big, which are safe to delete by hand with Finder or Terminal, and what CleanMate cleans and leaves alone.

Download for macOS — free and open source

CleanMate Smart Scan on a Mac, listing System Junk items such as old logs and crash reportsCleanMate Smart Scan on a Mac, listing System Junk items such as old logs and crash reports

Logs and crash reports are small one by one and rarely add up to much. Sometimes they do: an app stuck in a crash loop, a driver that logs an error every second or a developer tool can write several GB into ~/Library/Logs. This guide shows where they live, how to see what is big, what is safe to delete, and which logs you should not touch.

Contents

Where logs and crash reports live

Folder What is in it
~/Library/Logs text logs written by your apps and tools (one folder or file per app)
~/Library/Logs/DiagnosticReports crash, hang and “stackshot” reports of apps you run (.ips, older .crash)
/Library/Logs logs written for all users by system-wide software; /Library/Logs/DiagnosticReports holds crash reports of system processes
/private/var/log system logs (system.log, install logs); macOS rotates and compresses them itself

Most of macOS’s own logging does not go to files at all: the unified log lives in /private/var/db/diagnostics and is managed by the system. You read it in Console.app or with log show; you do not clean it by hand.

See what is big

du -sh ~/Library/Logs ~/Library/Logs/DiagnosticReports /Library/Logs 2>/dev/null
du -sh ~/Library/Logs/* 2>/dev/null | sort -h | tail -10     # the biggest, by app
ls -lS ~/Library/Logs/DiagnosticReports | head               # biggest crash reports first

In Finder use Go › Go to Folder… (⇧⌘G) and type ~/Library/Logs. Console.app lists the same reports under Crash Reports and Log Reports in the sidebar; right-click a report › Move to Trash deletes it there too.

If one folder is the problem, look inside before deleting: a single file of several GB is usually an app writing an error in a loop, and deleting it only helps until the loop writes the next one. Fix or update the app as well.

Delete them by hand, safely

Quit the app that wrote the log first. A log that is open keeps growing, and deleting it while the app runs frees nothing until the app quits.

# old crash reports: a week or more
find ~/Library/Logs/DiagnosticReports -type f -mtime +7 -print
find ~/Library/Logs/DiagnosticReports -type f -mtime +7 -delete

# old logs of one app (look at the -print list first)
find ~/Library/Logs/SomeApp -type f -mtime +7 -delete

Run the -print line first and read it. Deleting a log does not change what an app does: it creates a new one on its next run. Crash reports are only useful to send to the developer or to find out what crashed; once you have done that, they are not needed.

Files in /Library/Logs and /private/var/log need sudo. They are usually small and macOS rotates them itself, so look with du but leave them unless one file is huge.

What not to delete

For the larger picture of ~/Library — caches, containers, what is data — see which ~/Library folders are safe to delete. Logs are rarely the biggest part; if your disk is full, start with how to free up disk space on a Mac.

How CleanMate does it

CleanMate 1.12 (see all macOS features) works inside your user account, with no admin password.

You see the list and the size before anything is deleted. From Terminal, cleanmate scan shows what Smart Scan would clean and changes nothing: see the cleanmate command and AI agents. Download CleanMate. On Ubuntu logs live in the journal and /var/log: see the systemd journal, /var/log and the apt cache.

FAQ

Is it safe to delete ~/Library/Logs? The files inside, yes, with the app closed. They are records of past events, and apps write new ones. Keep the folder.

Can I delete DiagnosticReports? Yes. Crash reports are only needed to find out why an app crashed or to send to its developer. macOS writes a new one the next time something crashes.

Why is Console.app empty or slow? Console reads the unified log, which is separate from the files in ~/Library/Logs. Deleting files there does not clear it.

Why does a log file keep coming back huge? The app is writing an error again and again. Update it, reinstall it or remove it; deleting the file is only a pause.

Will deleting logs speed up my Mac? No. It only frees space.

Skip the commands

Open source — star it on GitHub: CleanMate for macOS

How CleanMate decides what is safe to remove →