Clean Out Accumulated Cruft

an article added by: Heather Rafail at 06052007



In: Categories » » MAC » Clean Out Accumulated Cruft

The term "cruft" is hacker slang for digital detritusobsolete, extraneous, or otherwise useless files that have accumulated on your disk over time and now do nothing but take up space. By removing cruft, you can recover valuable disk space, increase the speed of backups, file searches, upgrades, and disk diagnostics, and reduce the chance of software conflicts. If you have a brand-new Mac, this step may not apply to you, but even a few months of use can generate a surprising amount of cruft.
Determining which files you need and which can go may be a nontrivial undertaking. Some files ("My 2006 tax deductions.xls" or "Take Control of Maintaining Your Mac.pdf") are obviously important, and some (caches, old downloads, and so on) are obviously disposable. In between you may find thousands of files that you can't identify and that may or may not have some value.
My advice is to work slowly and deliberately, and avoid deleting anything whose purpose you're uncertain about. In particularwith only a few exceptions I'll mention shortlyyou should be circumspect about deleting things in /Library, and almost never delete anything in /System. And remember: this is something you do to reduce clutter, not a matter of life or death. So don't be too ruthless when it comes to deleting files.
Back up first: Because you're about to delete files, I strongly recommend that you make a full backup first, in case you accidentally delete something important. See Create a Backup System and Back Up Everything.
Here are my suggestions for files you might consider deleting:

  • Your ~/Documents folder is a likely place for unneeded files. Skim the contents of this folder and its subfolders, looking for documents and application support files you no longer need, and drag such items to the Trash.
  

Tip


Numerous programs make automatic backups of their files. This is a good thing, but over time you might accumulate dozens or hundreds of old, large backup files that do you no good. BBEdit and MYOB AccountEdge are examples of programs that tend to generate large numbers of backup files.
In addition, if you save iChat transcripts (in ~/Documents/iChats), you might also wish to delete old ones. And Eudora users may want to look through ~/Documents/Eudora Folder/Attachments Folder for unneeded attachments.

  • Look in /Applications (and /Applications/Utilities) for any software you've installed over the past year but never use. (Expired demo software, anyone?) Resist the temptation to delete Apple software that came with Mac OS X, though; you may need it later.

 

  • In the folders /Library, /Library/Application Support, ~/Library, and ~/Library/Application Support, look for folder names matching applications you no longer use, and delete them.

 

  • Your /Library and ~/Library folders may hold other folders that store components of third-party utilities. Look inside the folders called Application Enhancers, Bundles, Contextual Menu Items, InputManagers, and PreferencePanes for any system enhancements you no longer use, and drag them to the Trash.

 

  • Third-party Dashboard widgets live in ~/Library/Widgets. Any widgets you don't use can go.

 

  • Software that requires some component to be running in the background all the time may install folders in /Library/StartupItems. In most cases, you should leave this folder alone, but if you see anything there from software you're sure you don't use, delete it.

Warning! The /Library/StartupItems folder often contains background software you need but weren't aware you needed. For example, SOHO Notes uses an item in this folder called OpenBase; Retrospect uses a folder named RetroRun; and Now Up-to-Date & Contact uses a folder named NUDC. In short, if you're uncertain about anything in this folder, don't touch it.

  • Kernel extensions (files with names ending in .kext) add low-level functionality to Mac OS X. Examples include hardware drivers (for devices such as mice, trackballs, and audio interfaces), encryption tools, and screen-capture software. These files are stored in either /Library/Extensions or /System/Library/Extensions. Any such software you no longer need can be deleted, but be very careful, especially in /System/Library/Extensions: most of these files are essential to Mac OS X, and that includes some that may have a third-party company in their name. If you see any obsolete items in one of these folders, the safest way to remove them is to run the installer that put them there in the first place and choose Uninstall (or follow uninstallation instructions provided by the developer). Do not delete them manually.

A Conversation about Removing Cruft

How important is it to remove extraneous files? These experts expressed a variety of opinions:
Kirk McElhearn: One thing I do is remove language files (using Monolingual, http://monolingual.sourceforge.net/) every once in a while. It saves a bit of disk space and makes backups a little faster.
Glenn Fleishman: I think advice to remove cruft is very 1990s. There's little reason, except for backup storage issues and local storage issues, to ever delete a document. Movies and pictures may need extra storage or culling, but between Spotlight searching and giant hard drives, why delete? Backups are only marginally slower with a greater number of small files, so the advantage in deleting them is minimal.
Kirk McElhearn: You can save more than 1 GB by deleting language files, and this allows you to make a clone on a smaller partition for backups.
Joe Kissell: I don't delete language files myself, because I have plenty of disk space and I don't like to muck around with applications unnecessarily. However, to Glenn's point, I think removing cruft is valid even if you have tons of disk space, and Spotlight searching is in fact a great example of why I think that: when I'm looking for a file, I don't want to have to wade through a long list of matches, most of which are irrelevant items I could have deleted. And backups may not take much longer if you're backing up to another hard disk, but if you're backing up to optical media or a network server, every extra gigabyte has a significant impact.
Tonya Engst: I think it depends on the person. For example, I hate to keep extra email. It bothers me to have crufty mailboxes. I think it's OK for people to figure out whether they're pack rats or not, and to behave accordingly. I have found, though, that the better my filing scheme, the more files I keep. What I hate are files whose purpose or contents I can't easily identify. It's like someone else (perhaps Apple) putting real clutter on my real office shelves.

Tip
Uninstaller Utilities. If you prefer not to muck around in your Library folders looking for individual files to delete, consider picking up a utility that can do all the hard work for you. Here are some examples:

  • Spring Cleaning: This utility from Allume (www.allume.com; $50) can find and remove all sorts of cruft, including empty folders, orphaned aliases, Internet caches, and of course ordinary applications and their supporting files. Among the many tricks up its sleeve is the ability to restore items it has deleted if you later realize that you need them.
  • AppZapper: A much simpler tool, AppZapper (www.appzapper.com; $13) does just one thing (and does it well): it removes all the pieces associated with a given application, including preference and cache files, items in your Application Support folders, and even installer receipt files.

I should also mention two utilities that don't make any attempt to uninstall software but simply help you identify and delete large files on your drive that you may not need:

When you're finished deleting files, be sure to empty the Trash (Finder > Empty Trash) to recover the space the files previously occupied. Turn Off Unneeded Login ItemsMac OS X can run applications or open files automatically when any given user logs in; items set to open in this way are called login items. (Under Mac OS X 10.3 Panther, Apple called them startup items.) You can add a login item manuallyfor example, to save yourself a click or two by making sure your email program or Web browser runs every time you log in. Numerous applications also install login itemsoften without advertising that factso that background services they rely on are always available. Examples of programs that install background-only login items are iCal, Microsoft Office, Quicken, and StuffIt Deluxe.
Login items are useful, but they can also increase the time it takes to start your Mac (or switch users). In addition, the more applications you have running at once, the greater your RAM usage and CPU load. So I recommend checking to make sure you don't have any login items you can do without.
To check your login items, follow these steps:

1.

Go to the Accounts pane of System Preferences.

2.

Select your account in the list on the left and click the Login Items button

Scan the list of login items for any you no longer use. If you find one, select it and click the abutton. (This removes the item from the list but does not delete the corresponding file from your disk.) Repeat as necessary.

Tip
If you hover your mouse pointer over an item in the Login Items list for a few seconds, a yellow tool tip appears with that item's complete path. This information may not tell you exactly what the item does, but it at least tells you where it is, which may provide important clues.

You may find a few unfamiliar items in the Login Items list that are nevertheless legitimate and useful. In particular, do not remove these items, if present:

  • iCalAlarmScheduler: Enables iCal to display alarms even when the application is not running.

 

  • iTunesHelper: Watches for an iPod being connected or disconnected, to help iTunes communicate with it.

 

  • Microsoft AU Daemon: Schedules automatic updates for Microsoft Office applications

 

  • System Events: Enables AppleScript (or applications based on AppleScript) to send commands to parts of the operating system.

legal notice

Our website is not responsible for the information contained by this article. Web-articles is a free articles resource.
Suggestion: If you need fresh, daily updated content for your website, feel free to use our service. Click here for more information.

Useful tools and features

Clean Out Accumulated Cruft  
If you like this article (tutorial), please link to it from your web page using the information above.

related articles

1. Make Archival Backups to DVD
By now, regular backups are a normal part of your routine: your backup software automatically updates your archives every day and your duplicates once a week, and you diligently rotate backup media offsiteright? Even so, I recommend adding one final element to your backup regimen: archival DVDs. If you've followed my advice, you already have archives of all your important filesgoing back several months or moreon each of two or more hard drives. You also have one or more complete, bootable copies of your main hard di...

2. When Apple Releases a New Version of Mac OS X
As you use your computer, your files gradually become fragmented into smaller segments scattered across your disk. Some people consider this a serious problem and go to great lengths (and expense) to correct it. Before worrying about fragmentation, you should understand how and why it happensand what the real-world consequences are. Pretend, for the sake of illustration, that your hard disk consists of exactly ten blocks, and that initially, your disk contains five small files (A, B, C, D, and E), each of which t...

3. Decide on a Backup Strategy on MAC OS
Most modern hard drives have built-in sensors and monitoring circuitry that form a system called S.M.A.R.T. (Self-Monitoring Analysis and Reporting Technology). The idea of S.M.A.R.T. is to detect the warning signs of potential problems before they occur. Although S.M.A.R.T. cannot detect every possible drive problem, it can provide one very valuable warning: "Your drive is about to have problems, so back it up and repair (or replace) it now!" What does it work with? As of mid 2006, Disk Utility's S.M.A.R.T. indicator works wit...

4. Backing Up a Small Network with MAC OS X
Some backup programs distinguish between incremental and differential archiving schemes. Although not all software uses the terms in exactly the same way, the difference is typically that in an incremental backup, only the files changed or added since the last time the backup ran are added to the archive. With a differential backup, all the files changed or added since the initial full backup are added to the archive. Thus, differential backups take longer to run than incremental backups. This distinction is important when backi...

5. Video and audio backup strategy
Audio or video content you've purchased from the iTunes Music Store (iTMS) differs from music you've imported from CDs you own. Besides the fact that with downloaded files you don't have an original copy to serve as an extra backup, iTMS files include special copy protection to ensure that they can be played only by the purchaser, and only on one of up to five authorized computers. Because iTMS files are especially valuable, you should take extra steps to protect them: Always include iTMS tracks in your archive backup...

6. Windows Files Backup Strategy
Now that Apple offers Boot Camp software for Intel Macs, more and more people are installing Windows XP in its own partition. Meanwhile, virtualization software (such as Parallels Desktop and Q) is also catching on, as it enables users to run Windows at nearly full speed alongside Mac OS X without rebooting. Needless to say, if you're running Windows on your Mac, you should back up your Windows files too. When you do, keep the following tips in mind: The Windows partition Boot Camp creates is...

7. USB 2.0 Drives, Intel Macs, and Bootability
Almost every Mac with a FireWire port can boot from an external FireWire drive (either the 400 or 800 variety). However, only Intel-based Macs can boot into Mac OS X from USB 2.0 hard drives. Therefore, if you're looking for a drive on which to store duplicates, I suggest choosing either FireWire-only or combination FireWire/USB hard drives, which will give you the broadest compatibility. However, be aware of two important points regarding Intel Macs: Despite Apple's claims to the contrary, Intel Macs can boot ...

8. A Reminder about Redundancy
As I suggested earlier in, no matter which type of backup medium you use, you should always keep multiple copies of your backups. That means multiple hard drives or multiple sets of removable media (of whichever sort). There's always the chance that a single backup will suffer the same fate as your hard drive: a random failure of some sort. If you attempt to restore files from a backup and find that it's damaged, you'll be grateful that you had a spare copy. Better yet, if possible, consider maintaining three sets of backups, one ...