Can I erase my Mail logs

Hi


Recently I just figured out that I have over 100 gb of mail logs stored on my Mac


I use Mac Mail native app, to acces a G suite account for my job


Question


If I erase all the mail logs, I would still be able to acces all the emails and files, correct?





MacBook Pro 13", macOS 10.14

Posted on Jun 7, 2019 11:26 AM

Reply

Similar questions

6 replies

Jun 7, 2019 12:38 PM in response to Arnoldimike

What do you mean by "100 gb of mail logs". You mean the emails? How did you figure the size was 100gb. ( some of the system reports are inaccurate. )


The mail app stores the mail ~/Library/Mail. What type of account do you have? exchanage, imap or pop?




I do a full backup of your system. I'd proceed with caution. You never know what might happen. You don't want you bosses coming by your office. If it aren't broken don't fix it. Just get a larger disc.


R


Jun 10, 2019 4:20 PM in response to Arnoldimike


Maybe someone else can explain it.


(1) You might want to run

Run

OmniDiskSweeper

"The simple, fast way to save disk space"

OmniDiskSweeper is now free!

OmniDiskSweeper and OmniWeb - The Omni Group


(2) You could try the unix disk utilization command. du

# I think unix still uses 1024 for k instead of 1000 for k

/Applications/Utilities/Terminal

Unix navigation commands.

https://discussions.apple.com/docs/DOC-11071

mac $  du -cxsPh  ~/Library/Mail
137M	/Users/mac/Library/Mail
137M	total
mac $  du -cxsPh  ~/Library/Mail/*
137M	/Users/mac/Library/Mail/V2
137M	total
mac $  du -cxsPh  ~/Library/Mail/V2/*
 17M	/Users/mac/Library/Mail/V2/IMAP-...
1.5M	/Users/mac/Library/Mail/V2/IMAP-...
108M	/Users/mac/Library/Mail/V2/IMAP-...
9.0M	/Users/mac/Library/Mail/V2/MailData
 52K	/Users/mac/Library/Mail/V2/Mailboxes
136M	total
mac $ 





Jun 7, 2019 2:21 PM in response to Arnoldimike

Yes you are safe to delete all those .txt file logs—


From the Finder>Go>Go To Folder, copy&paste:


~/Library/Containers/com.apple.mail/Data/Library/Logs/Mail 


I have seen anywhere from 12 GB to 342 GB of logs built up here.


Don't forget to empty your Trash.


Use these logs only when trying to troubleshoot a problem.

You can turn off Mail logs. Mail.app>Window>Connection Doctor> uncheck Log activity.


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Can I erase my Mail logs

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.