14

I have tons of file on my desktop. I am using latest macbook pro.

After selecting the file using mouse I hit delete and then "command and delete" and none of them work.

So finally I hit ctrl + mouse click and then I chose "Move to trash".

Is there a way to delete the file using only keyboard?

user998
  • 515
  • @lpacheco -- No, the Finder does not provide the ability to do this directly. You can press the keyboard commands to send to Trash and immediately empty the trash, or check out this question and answer (http://apple.stackexchange.com/questions/43577/can-finder-delete-a-file-directly-and-bypass-moving-it-to-the-trash) for other ways to extend Finder to be able to do this. – whiskeychief Aug 06 '15 at 10:24
  • As the answers point out, this question doesn’t need more answers. What OP said didn’t work is the highest voted answer and we have options for both macOS and windows, which also isn’t specified in the body of the post. – bmike Jan 11 '22 at 21:51

6 Answers6

28

command+delete works just fine. Highlight the file (single click or use your keyboard to select it), then hold command and without releasing it, push delete. This moves the file or folder to the trash.

Note that delete is in the same place as Backspace on a Windows keyboard.

styfle
  • 1,727
2

The full procedure to delete a file from the desktop, without the mouse, that should work almost anywhere in OS X, includes the following.

Command-Tab to switch applications until the Finder is the active application.

If any Finder windows are currently open, press Command-Shift-D to open a new window containing the Desktop folder, or Option-Command-W to close all active Finder windows and make the Finder's desktop active;

To highlight the icon, type the first few letters of the icon's name, or press the arrow keys until it is selected (highlighted);

Command-Delete to send the icon to the trash;

Optionally, Command-Shift-Delete to empty the trash.

Learning the keyboard shortcuts takes time, but many of the steps in the Finder can become natural, almost "automatic" with enough practice.

(This answer gives the key names in U.S. English. The Command key is also labeled ; The Option key is also labeled ; The Shift key is also labeled ; and as mentioned by Styfle, the "delete" key is called "Backspace" on other operating systems.)

1

I had an issue with command+delete not working to delete things on the desktop that looked like apps I had installed earlier. Turns out they weren't files, but instead mounted DMG files that needed to be ejected with +E.

0

Just in case if someone uses external Microsoft Sculpt Ergo keyboard + Macbook Pro 2016. I'm able to move file to Trash with 'Win'+'backspace' keystroke.

St.Shadow
  • 101
  • 1
    Yes, in general the Windows key is the Command key for all operations. – grg Sep 19 '17 at 15:01
  • It's more related to the fact that 'Win'+'Delete' doesn't work for me, but should, if we assume that 'Win' == 'Command' – St.Shadow Sep 25 '17 at 17:24
-1

TLDR: Use CTRL + d on Windows.

If you find yourself using Apple hardware in a Windows environment (like running Bootcamp on a MacBook Pro or just using an Apple keyboard in Windows), you may notice that delete is mapped to the Windows Backspace key which is never involved in deleting files.

But you can still send files to the recycle bin with CTRL + d.

-2

highlight, then SHIFT + DELETE; click ok