Keyboard Shortcut to delete a file on a Mac [Macbook]

To delete a file or files on a Mac (macOS) all you need to do is a two-finger tap on your trackpad on your MacBook or right-click using the Mouse after selecting the file(s) to delete and click on "Move to trash".

But if you want to make use of the Keyboard shortcut to perform the same operation you can press - ⌘ Command + Delete keys together, the file will be moved to the trash and you should hear the sound,

If you want to delete the file completely, without moving it to the trash, press Command + Option + Delete keys, and you will see a prompt that says,

Are you sure you want to delete FILE? 

The item will be deleted 
immediately you can't undo this action.

You need to click on the Delete button of the option to delete the file permanently.

Command + Option + Delete keyboard shortcut to delete file permanenlty
Command + Option + Delete keyboard shortcut to delete file permanenlty
Try Out Code2care Dev Tools:


Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and software developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include learnings, tutorials, trouble-shooting steps, video tutorials, code snippets, how-to, blogs, articles, etc.

🎉 We are celebrating the 10th years of Code2care! Thank you for all your support!

We strongly support Gender Equality & Diversity.