Go Back   MacRumors Forums > Apple Applications > Mac Applications and Mac App Store

Reply
 
Thread Tools Search this Thread Display Modes
Old Jan 26, 2013, 05:42 PM   #1
JoelBC
macrumors 6502a
 
Join Date: Jun 2012
Delete Log and Other Unnecessary Files...

The title says it all...is there a way to safely identify and delete unnecessary log and other files and, if yes, then how...

Thanks in advance,


Joel
JoelBC is offline   0 Reply With Quote
Old Jan 26, 2013, 06:13 PM   #2
whiteonline
macrumors 6502
 
Join Date: Aug 2011
Location: California, USA
Kind of an open question, but here you go....

There are application log files in your home directory that may or may not be pretty safe to clear out. Run the following command in terminal:
Code:
find $HOME -type f -name *.log -exec du -sh {} \;
Honestly, the savings you will get in space is negligible. Most log files wont exceed 10MB and you're better off keeping them.

There are log files in /var/log, but I would leave those. My entire /var/log directory is only 65MB.

In the end, I advise leaving log files alone unless you know what they are and their significance. But, if it's not a production machine, delete away. It's your funeral.
whiteonline is offline   0 Reply With Quote
Old Jan 27, 2013, 01:50 PM   #3
JoelBC
Thread Starter
macrumors 6502a
 
Join Date: Jun 2012
Quote:
Originally Posted by whiteonline View Post
Kind of an open question, but here you go....

There are application log files in your home directory that may or may not be pretty safe to clear out. Run the following command in terminal:
Code:
find $HOME -type f -name *.log -exec du -sh {} \;
Honestly, the savings you will get in space is negligible. Most log files wont exceed 10MB and you're better off keeping them.

There are log files in /var/log, but I would leave those. My entire /var/log directory is only 65MB.

In the end, I advise leaving log files alone unless you know what they are and their significance. But, if it's not a production machine, delete away. It's your funeral.
Appreciate both the response and the warning and will likely stand pat and do nothing....just my OCD kicking in
JoelBC is offline   0 Reply With Quote
Old Jan 27, 2013, 01:51 PM   #4
GGJstudios
macrumors Westmere
 
Join Date: May 2008
Quote:
Originally Posted by JoelBC View Post
The title says it all...is there a way to safely identify and delete unnecessary log and other files and, if yes, then how...
If your goal is freeing up drive space, you'll make a bigger impact by moving user data to external drives.

Freeing up drive space in Mac OS X
GGJstudios is offline   0 Reply With Quote
Old Jan 27, 2013, 01:55 PM   #5
JoelBC
Thread Starter
macrumors 6502a
 
Join Date: Jun 2012
Quote:
Originally Posted by GGJstudios View Post
If your goal is freeing up drive space, you'll make a bigger impact by moving user data to external drives.

Freeing up drive space in Mac OS X
Appreciate the insight...the issue is not freeing up drive space as this is not an issue but rather keeping the SSD as "clean as possible" and not having "unnecessary files" on it...

Joel
JoelBC is offline   0 Reply With Quote
Old Jan 27, 2013, 01:56 PM   #6
Peace
macrumors P6
 
Peace's Avatar
 
Join Date: Apr 2005
Location: Space--The ONLY Frontier
You might want to check out Cocktail. It's a great utility and has been around for years.

http://www.maintain.se/cocktail
Peace is offline   0 Reply With Quote
Old Jan 27, 2013, 01:57 PM   #7
GGJstudios
macrumors Westmere
 
Join Date: May 2008
Quote:
Originally Posted by JoelBC View Post
Appreciate the insight...the issue is not freeing up drive space as this is not an issue but rather keeping the SSD as "clean as possible" and not having "unnecessary files" on it...
It's a good idea to refrain from deleting items in the System and Library folders, unless you know exactly what you're doing. Most of those files are not unnecessary. Again, you're better off moving user data to an external drive.
GGJstudios is offline   1 Reply With Quote
Old Jan 27, 2013, 02:06 PM   #8
JoelBC
Thread Starter
macrumors 6502a
 
Join Date: Jun 2012
Quote:
Originally Posted by Peace View Post
You might want to check out Cocktail. It's a great utility and has been around for years.

http://www.maintain.se/cocktail
Will take a look, appreciated...


Quote:
Originally Posted by GGJstudios View Post
It's a good idea to refrain from deleting items in the System and Library folders, unless you know exactly what you're doing. Most of those files are not unnecessary. Again, you're better off moving user data to an external drive.
Warning received and appreciated...
JoelBC is offline   0 Reply With Quote
Old Jan 27, 2013, 02:11 PM   #9
simsaladimbamba
Guest
 
Join Date: Nov 2010
Location: located
And if your are worried about the SSD and having small files depreciating its life:

Normally modern SSDs have a theoretical write/read limit of 10,000 to 100,000 cycles (P/E cycles), meaning if you had a 64 GB SSD and its cycle limit would be 10,000, you would have to write 625 TB to it, which would be 351 GB per day everyday for the next five years. Assuming those numbers vary and it would only be a tenth of that, it would still mean 35 GB per day, which under normal usage no average computer consumer does, not even with temporary files.
simsaladimbamba is offline   0 Reply With Quote
Old Jan 27, 2013, 02:29 PM   #10
2012Tony2012
macrumors 6502a
 
2012Tony2012's Avatar
 
Join Date: Dec 2012
Quote:
Originally Posted by JoelBC View Post
The title says it all...is there a way to safely identify and delete unnecessary log and other files and, if yes, then how...

Thanks in advance,


Joel
These apps delete logs:

Onyx
Ccleaner
iBoostUp
IceClean
2012Tony2012 is offline   1 Reply With Quote
Old Jan 27, 2013, 02:35 PM   #11
GGJstudios
macrumors Westmere
 
Join Date: May 2008
Quote:
Originally Posted by 2012Tony2012 View Post
These apps delete logs:

Onyx
Ccleaner
iBoostUp
IceClean
Logs should not be deleted, unless there's a specific problem. You don't need to "maintain" your Mac and you don't need "cleaner" or "maintenance" apps to keep your Mac running well. Some of these apps can do more harm than good. Some can even degrade, rather than improve system performance.

Some remove files/folders or unused languages or architectures, which does nothing more than free up some drive space, with the risk of deleting something important in the process. These apps will not make your Mac run faster or more efficiently, since having stuff stored on a drive does not impact performance, unless you're running out of drive space.

Some of these apps delete caches, which can hurt performance, rather than help it, since more system resources are used and performance suffers while each cache is being rebuilt. Caches exist to improve performance, so deleting them isn't advisable in most cases.

Many of the tasks performed by these apps should only be done selectively to troubleshoot specific problems, not en masse as routine maintenance.

Mac OS X does a good job of taking care of itself, without the need for 3rd party software. Among other things, it has its own maintenance scripts that run silently in the background on a daily, weekly and monthly basis, without user intervention. You can use Maintidget to see the last time these scripts were run.
Five Mac maintenance myths
GGJstudios is offline   1 Reply With Quote
Old Jan 27, 2013, 03:24 PM   #12
JoelBC
Thread Starter
macrumors 6502a
 
Join Date: Jun 2012
Quote:
Originally Posted by simsaladimbamba View Post
And if your are worried about the SSD and having small files depreciating its life:

Normally modern SSDs have a theoretical write/read limit of 10,000 to 100,000 cycles (P/E cycles), meaning if you had a 64 GB SSD and its cycle limit would be 10,000, you would have to write 625 TB to it, which would be 351 GB per day everyday for the next five years. Assuming those numbers vary and it would only be a tenth of that, it would still mean 35 GB per day, which under normal usage no average computer consumer does, not even with temporary files.
Appreciate the post and note that though this is not my concern it is good to know that the SSD will last a long time...by the way, I have a 256 GB SSD so I guess I can write 4 times as much on a daily basis!!

----------

Quote:
Originally Posted by 2012Tony2012 View Post
These apps delete logs:

Onyx
Ccleaner
iBoostUp
IceClean
Thanks, much appreciated...

----------

Quote:
Originally Posted by GGJstudios View Post
Logs should not be deleted, unless there's a specific problem. You don't need to "maintain" your Mac and you don't need "cleaner" or "maintenance" apps to keep your Mac running well. Some of these apps can do more harm than good. Some can even degrade, rather than improve system performance.

Some remove files/folders or unused languages or architectures, which does nothing more than free up some drive space, with the risk of deleting something important in the process. These apps will not make your Mac run faster or more efficiently, since having stuff stored on a drive does not impact performance, unless you're running out of drive space.

Some of these apps delete caches, which can hurt performance, rather than help it, since more system resources are used and performance suffers while each cache is being rebuilt. Caches exist to improve performance, so deleting them isn't advisable in most cases.

Many of the tasks performed by these apps should only be done selectively to troubleshoot specific problems, not en masse as routine maintenance.

Mac OS X does a good job of taking care of itself, without the need for 3rd party software. Among other things, it has its own maintenance scripts that run silently in the background on a daily, weekly and monthly basis, without user intervention. You can use Maintidget to see the last time these scripts were run.
Five Mac maintenance myths

Appreciate the insight and the two links...

I have reviewed the Maintidget webpage and detail and it looks as though the "daily taks" cover many of the items I am interested in...I will download it and give it a try...

In terms of the others -- though you are not fans of them -- any preferences / suggestions among the 5 listed namely CCleaner, Cocktail, iBoostUp, iClean and Onyx...

Worth also noting is that I am only interested in cleaning out logs and other like files and not applications as to do this I follow another one of the links you posted which essentially entails a Finder search inclusive of system files...

WIth much thanks,


Joel
JoelBC is offline   0 Reply With Quote
Old Jan 27, 2013, 03:29 PM   #13
GGJstudios
macrumors Westmere
 
Join Date: May 2008
Quote:
Originally Posted by JoelBC View Post
I have reviewed the Maintidget webpage and detail and it looks as though the "daily taks" cover many of the items I am interested in...I will download it and give it a try...
Understand that you don't need that widget, except for information purposes, as those maintenance scripts run automatically, without user or 3rd party app interference.
Quote:
Originally Posted by JoelBC View Post
In terms of the others -- though you are not fans of them -- any preferences / suggestions among the 5 listed namely CCleaner, Cocktail, iBoostUp, iClean and Onyx...
The preference is none. This isn't Windows. You don't need to tinker around or maintain OS X. It takes care of itself, automatically. You don't need such apps to keep your Mac running well.
Quote:
Originally Posted by JoelBC View Post
Worth also noting is that I am only interested in cleaning out logs and other like files
That's just it. You don't need to clean out logs, as they don't take much space and you will need them for troubleshooting purposes. You're not helping your Mac by deleting such files. It's better to just use your Mac to surf, check emails, create documents, listen to music, watch movies, etc. and leave the system maintenance up to OS X.
GGJstudios is offline   0 Reply With Quote
Old Jan 27, 2013, 03:34 PM   #14
2012Tony2012
macrumors 6502a
 
2012Tony2012's Avatar
 
Join Date: Dec 2012
Quote:
Originally Posted by Peace View Post
You might want to check out Cocktail. It's a great utility and has been around for years.

http://www.maintain.se/cocktail
Cocktail is not on macupdate website, why? Dodgy app?

----------

Quote:
Originally Posted by GGJstudios View Post
Logs should not be deleted, unless there's a specific problem. You don't need to "maintain" your Mac and you don't need "cleaner" or "maintenance" apps to keep your Mac running well. ..
I clean out my logs regularly, never had a problem.

I will continue cleaning logs as I cannot be sure what kind of personal/sensitive/secure data may be stored in them.
2012Tony2012 is offline   1 Reply With Quote
Old Jan 27, 2013, 03:38 PM   #15
GGJstudios
macrumors Westmere
 
Join Date: May 2008
Quote:
Originally Posted by 2012Tony2012 View Post
I clean out my logs regularly, never had a problem.
You will if you need to troubleshoot a problem and need the logs you deleted.
Quote:
Originally Posted by 2012Tony2012 View Post
I will continue cleaning logs as I cannot be sure what kind of personal/sensitive/secure data may be stored in them.
That further illustrates why you shouldn't delete them. You don't even know what they contain or what they're used for. You shouldn't delete anything on your Mac unless you know what it's for and what the consequences of deletion are. There is no intelligent reason to "clean" logs on a regular basis. This is old Windows mentality that doesn't apply to OS X.
GGJstudios is offline   0 Reply With Quote
Old Jan 27, 2013, 03:38 PM   #16
JoelBC
Thread Starter
macrumors 6502a
 
Join Date: Jun 2012
Quote:
Originally Posted by GGJstudios View Post
Understand that you don't need that widget, except for information purposes, as those maintenance scripts run automatically, without user or 3rd party app interference.
Understood though I appreciate the post in the event that I did not...


Quote:
Originally Posted by GGJstudios View Post
The preference is none. This isn't Windows. You don't need to tinker around or maintain OS X. It takes care of itself, automatically. You don't need such apps to keep your Mac running well.
Noted with thanks...


Quote:
Originally Posted by GGJstudios View Post
That's just it. You don't need to clean out logs, as they don't take much space and you will need them for troubleshooting purposes. You're not helping your Mac by deleting such files. It's better to just use your Mac to surf, check emails, create documents, listen to music, watch movies, etc. and leave the system maintenance up to OS X.
Noted with thanks and understand your view on this...
JoelBC is offline   0 Reply With Quote
Old Jan 27, 2013, 03:39 PM   #17
2012Tony2012
macrumors 6502a
 
2012Tony2012's Avatar
 
Join Date: Dec 2012
Quote:
Originally Posted by GGJstudios View Post
..You don't need to tinker around or maintain OS X. It takes care of itself, automatically. ...
I don't agree, as I have learned that we have to manually clear out internet activity to protect our privacy etc. OS X does NOT automatically clear out my activity, I have to do it myself. And OS X does NOT maintain RAM very well either I have noticed, I have to regularly run FreeMemory to free up RAM to run the OS X smoothly as it starts paging out and running sluggish if I don't, even after closing all APPS, it still runs slow and paging out if I don't reboot or run FreeMemory.

So there are times such Apps are needed, as OS X does NOT take care of it on it's own.
2012Tony2012 is offline   1 Reply With Quote
Old Jan 27, 2013, 03:42 PM   #18
JoelBC
Thread Starter
macrumors 6502a
 
Join Date: Jun 2012
Quote:
Originally Posted by 2012Tony2012 View Post
Cocktail is not on macupdate website, why? Dodgy app?
Enough said...off the list...



Quote:
Originally Posted by 2012Tony2012 View Post
I clean out my logs regularly, never had a problem.

I will continue cleaning logs as I cannot be sure what kind of personal/sensitive/secure data may be stored in them.
Understood though I am not terribly concerned about this as I would wipe my drive before giving the computer to anyone...and you do this how...

----------

Quote:
Originally Posted by 2012Tony2012 View Post
I don't agree, as I have learned that we have to manually clear out internet activity to protect our privacy etc. OS X does NOT automatically clear out my activity, I have to do it myself. And OS X does NOT maintain RAM very well either I have noticed, I have to regularly run FreeMemory to free up RAM to run the OS X smoothly as it starts paging out and running sluggish if I don't, even after closing all APPS, it still runs slow and paging out if I don't reboot or run FreeMemory.

So there are times such Apps are needed, as OS X does NOT take care of it on it's own.
I do not know what browser you use but I use Chrome and have added he ERASER extension which seems to do a very good job of clearing out browsing history...
JoelBC is offline   0 Reply With Quote
Old Jan 27, 2013, 03:43 PM   #19
GGJstudios
macrumors Westmere
 
Join Date: May 2008
Quote:
Originally Posted by 2012Tony2012 View Post
I don't agree, as I have learned that we have to manually clear out internet activity to protect our privacy etc. OS X does NOT automatically clear out my activity, I have to do it myself. And OS X does NOT maintain RAM very well either I have noticed, I have to regularly run FreeMemory to free up RAM to run the OS X smoothly as it starts paging out and running sluggish if I don't, even after closing all APPS, it still runs slow and paging out if I don't reboot or run FreeMemory.

So there are times such Apps are needed, as OS X does NOT take care of it on it's own.
I didn't say anything about browsers or internet caches, cookies and history, which can easily be cleared in the browser, with no need for a 3rd party app. I'm referring to OS X and system files. Your propensity to install a myriad of apps rather than let OS X work natively indicates a lack of understanding about how OS X operates, including memory management.

Of course, it's your Mac and you can do whatever you want with it, but it's not prudent to mislead others into thinking they need such apps.
GGJstudios is offline   0 Reply With Quote
Old Jan 27, 2013, 03:43 PM   #20
Peace
macrumors P6
 
Peace's Avatar
 
Join Date: Apr 2005
Location: Space--The ONLY Frontier
Quote:
Originally Posted by 2012Tony2012 View Post
Cocktail is not on macupdate website, why? Dodgy app?

----------



I clean out my logs regularly, never had a problem.

I will continue cleaning logs as I cannot be sure what kind of personal/sensitive/secure data may be stored in them.
Just because cocktail isn't on macupdate doesn't make it dodgy. It's a well respected tool for many professionals including the New York Times,Business Week and Sony.

I think some Apple engineers also use it.

All Cocktail is is a GUI for the terminal scripts.

Instead of typing "sudo- bla bla bla" you use the GUI.

Here's your macupdate link. Sorry I don't use macupdate because I consider it "dodgy" :-)

http://macupdate.com/app/mac/10909/cocktail
Peace is offline   1 Reply With Quote
Old Jan 27, 2013, 04:06 PM   #21
2012Tony2012
macrumors 6502a
 
2012Tony2012's Avatar
 
Join Date: Dec 2012
Quote:
Originally Posted by GGJstudios View Post
I didn't say anything about browsers or internet caches, cookies and history, which can easily be cleared in the browser, with no need for a 3rd party app. I'm referring to OS X and system files. Your propensity to install a myriad of apps rather than let OS X work natively indicates a lack of understanding about how OS X operates, including memory management.

Of course, it's your Mac and you can do whatever you want with it, but it's not prudent to mislead others into thinking they need such apps.
I believe you are misleading others into a false sense of security. There are times people need to use third party Apps to clean out sensitive and private information stored by some Apps which the Apps themselves to do clean out automatically.
2012Tony2012 is offline   1 Reply With Quote
Old Jan 27, 2013, 04:13 PM   #22
GGJstudios
macrumors Westmere
 
Join Date: May 2008
Quote:
Originally Posted by 2012Tony2012 View Post
I believe you are misleading others into a false sense of security. There are times people need to use third party Apps to clean out sensitive and private information stored by some Apps which the Apps themselves to do clean out automatically.
If you're cleaning out "sensitive and private information", be sure to delete all your emails and user files. Cleaning logs isn't going to do the trick.
GGJstudios is offline   0 Reply With Quote
Old Jan 27, 2013, 04:18 PM   #23
2012Tony2012
macrumors 6502a
 
2012Tony2012's Avatar
 
Join Date: Dec 2012
Quote:
Originally Posted by GGJstudios View Post
If you're cleaning out "sensitive and private information", be sure to delete all your emails and user files. Cleaning logs isn't going to do the trick.
I am running all my user files and personal email apps from an encrypted partition, so I don't need to worry about that.
2012Tony2012 is offline   1 Reply With Quote
Old Jan 28, 2013, 03:23 AM   #24
GGJstudios
macrumors Westmere
 
Join Date: May 2008
Quote:
Originally Posted by 2012Tony2012 View Post
I am running all my user files and personal email apps from an encrypted partition, so I don't need to worry about that.
The the fact is that deleting logs on a Mac that you're still using is pointless. Any "sensitive" or "private" information that might be contained in them (which isn't the case for most logs) is not a problem if you still control the computer. Certainly if you're preparing to sell or give a computer to someone else, it makes sense to wipe the drive and clean install the OS, but not when you're still using it, and certainly not on a regular basis.
GGJstudios is offline   0 Reply With Quote
Old Jan 28, 2013, 03:07 PM   #25
2012Tony2012
macrumors 6502a
 
2012Tony2012's Avatar
 
Join Date: Dec 2012
Quote:
Originally Posted by GGJstudios View Post
The the fact is that deleting logs on a Mac that you're still using is pointless. Any "sensitive" or "private" information that might be contained in them (which isn't the case for most logs) is not a problem if you still control the computer. Certainly if you're preparing to sell or give a computer to someone else, it makes sense to wipe the drive and clean install the OS, but not when you're still using it, and certainly not on a regular basis.
You indicate that only most logs may not contain any "sensitive" or "private" information, so I have to conclude that some may, and the problem is I never know which ones exactly, so hence, the need to wipe them all regularly.

You then indicate that it's not a problem if you still control the computer. What exactly do you mean by that? Please elaborate how I can control my Mac to not write any "sensitive" or "private" information to any log files.
2012Tony2012 is offline   1 Reply With Quote

Reply
MacRumors Forums > Apple Applications > Mac Applications and Mac App Store

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Can I delete diagnostic log messages ? whitedragon101 OS X 10.8 Mountain Lion 3 Sep 11, 2013 01:09 PM
Safe to Delete /var/log/ ? macuser1232 MacBook Pro 2 Mar 15, 2013 09:26 AM
Moved files to new user, now requires password to e.g. delete files poobear Mac Basics and Help 2 Feb 9, 2013 01:42 PM
How to view & delete the secret hidden download history log in OS X supertonic OS X 0 Jan 17, 2013 12:30 PM
I can't delete photos, notes, call log. polkagon iPhone Tips, Help and Troubleshooting 0 Jun 13, 2012 10:04 AM

Forum Jump

All times are GMT -5. The time now is 06:49 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC