The Trash

No single element of the Macintosh interface is as recognizable or famous as the Trash can icon, which appears at the end of the Dock. (It’s actually a wastebasket, not a can.)

You can discard almost any icon by dragging it into the Trash can. When the tip of your arrow cursor touches the Trash icon, the little wastebasket turns black. When you release the mouse, you’re well on your way to discarding whatever it was you dragged. As a convenience, macOS even replaces the empty-wastebasket icon with a wastebasket-filled-with-crumpled-up-papers icon, to let you know there’s something in there.

It’s worth learning the keyboard alternative to dragging something into the Trash: Highlight the icon, and then press -Delete (which corresponds to the File→Move to Trash command).

Or, if your Mac has a Touch Bar (The Complicated Story of the Function Keys), you can install a Move to Trash button on it, so that one tap there does the trick.

The keyboard and Touch Bar techniques are not only far faster than dragging, but also require far less precision. MacOS does all the Trash-targeting for you.

Note

If a file is locked, a message appears to let you know; it offers you the chance to fling it into the Trash anyway. That’s a better solution than in older versions of macOS, when you were forced to unlock the file before you could trash it.

File and folder icons sit in the Trash forever—or until you choose Finder→Empty Trash, whichever comes first.

If you haven’t yet emptied the Trash, you can open its window by clicking the wastebasket icon once. Now you can review its contents: icons that you’ve placed on the waiting list for extinction. If you change your mind, you can:

If you’re confident that the items in the Trash window are worth deleting, use any of these three options to empty it:

The Mac asks you to confirm your decision. (Figure 3-12 shows this message.) If you click Empty Trash (or press Return), macOS deletes those files from your hard drive.

New in macOS Sierra: The Mac can now empty the Trash automatically after 30 days, just as Windows has been able to do for years. (Well, technically, it removes individual items from the trash after each has sat there for 30 days.)

If you turn on this option in Finder→Preferences→Advanced (“Remove items from the Trash after 30 days”), you can forget about having to empty the Trash manually. You can just think of it as a 30-day safety net for things you’re pretty sure you want to ditch.

By highlighting a file or folder, choosing File→Get Info, and turning on the Locked checkbox, you protect that file or folder from accidental deletion (see Figure 3-12 at bottom). A little icon appears on the corner of the full-size icon, also shown in Figure 3-12.

Locked files these days behave quite differently than they did in early Mac versions:

You can unlock files easily enough. Press Option--I (or press Option as you choose File→Show Inspector). Turn off the Locked checkbox in the resulting Info window. (Yes, you can lock or unlock a mass of files at once.)