How To Delete Files On Mac (Every Method Explained)

Before we dive in

Before we dive in, let's make sure you stay safe online. We created SpyHunter because your security matters to us.

Protect your computer today — download SpyHunter right here! Check out our top tips below to keep your computer safe and secure.

Download SpyHunter

Managing and removing files on a Mac can sometimes be a challenge, but it doesn’t have to be.

Imagine freeing up gigabytes of space by removing large files you no longer need or swiftly deleting multiple files at once with simple keyboard shortcuts.

Whether you’re a Mac veteran or new to the Apple world, knowing how to delete files will save you time and keep your Mac happy.

Here, we’ll cover all the ways to delete files on a Mac, from old-school drag-and-drop to the Trash to using Terminal commands for stubborn files that just won’t budge.

Get ready to declutter your Mac!

Delete a file on Mac using keyboard shortcuts

This is the easiest method to delete a file from your Mac. Mac OS offers two quick key combinations to delete files:

  • Press Command + Delete to send the selected file to the Trash.
  • Press Option + Command + Delete to delete the selected file permanently. Use this combination when you want to immediately delete a file without sending it to the Trash. Be cautious, as this action cannot be undone.

Delete files on Mac using the Trash Bin

One of the most common and straightforward methods for deleting files on a Mac is by using Trash.

This method is familiar to most Mac users and serves as a safety net by allowing you to recover files if needed before they are permanently deleted.

To delete a file using the Trash, you can:

  • Click and drag the file/folder you want to delete to the Trash icon located in the Dock.
  • Right-click (or Control-click) on the file and select Move to Trash from the context menu.
move file to trash folder from file menu
  • Select a file, click on the File menu in the menu bar, and click Move to Trash.
move to trash folder from finder menu

Moving files to the Trash doesn’t permanently delete them from your Mac; they still occupy disk space until the Trash is emptied.

To free up space and delete these files permanently, you need to empty the Trash:

  • Right-click on the Trash icon and select Empty Trash.
empty trash menu action
  • A prompt will appear asking if really want to permanently delete the items. Click Empty Trash to confirm.
delete files on mac permanently confirmation dialog; empty trash button

Note: If you want your Mac to empty the Trash automatically, you can enable this feature. Go to Finder > Settings and turn on the Remove items from the Trash after 30 days option. This will permanently delete files that have been in the Trash for more than 30 days.

setup trash to be automatically emptied checkbox

Regularly emptying the Trash helps free up disk space and keeps your Mac running efficiently.

Use the Optimize Storage tool to delete Mac files

Managing your Mac’s storage space can be effortless with the built-in Optimize Storage tool.

Many Mac users overlook this handy feature, but it’s a powerful way to identify and delete files, including large and unwanted files.

Here’s how to use the Optimize Storage tool to delete files on Mac:

  1. Navigate to System Settings > General > Storage.
  2. Under the Recommendations section, you’ll see suggestions for optimizing your storage. These recommendations help you quickly identify files that can be deleted or moved to iCloud.
mac storage manager in system settings
  1. Further down, you can view your files broken down into different categories. Select a category to see the files within it.
system preferences storage tab preview
  1. Click on a file, then press the Delete button to remove it. You can sort files by size, kind, or date to easily find large files or those you no longer need.

Tip: Focusing on large and old files that you no longer access regularly is an effective way to reclaim disk space. Consider archiving essential files to an external drive or cloud storage before deleting them from your Mac.

Remove even more files with SpyHunter for Mac

While the Optimize Storage tool is helpful, it might not catch every file that’s clogging up your system.

SpyHunter for Mac offers a faster and more comprehensive solution to clean up your Mac by targeting system junk, duplicate files, and other unnecessary data that consume your storage.

SpyHunter can solve a lot of Mac issues for you:

  • Junk Scanning: SpyHunter thoroughly scans your Mac to identify hidden junk files, caches, and logs that the standard tools might miss.
  • Duplicate File Finder: SpyHunter locates duplicate files scattered across your system, allowing you to delete them and free up significant disk space.
remove large files with spyhunter and free up disk space

To find and remove large, junk, or duplicate files with SpyHunter for Mac:

  1. Download SpyHunter for free here and install it.
  2. Open the application and initiate a system scan.
  3. Once the scan is complete, you’ll see a list of files that can be deleted.
  4. Choose the files you want to delete. You can select all or pick specific files based on your needs.
  5. Follow the prompts to delete the selected files.

By using SpyHunter for Mac, you can effortlessly manage and delete files that are often overlooked, ensuring your Mac remains efficient and clutter-free.

How to delete multiple files at once

Deleting multiple files at once on your Mac can save a lot of time. Here’s how to select and delete multiple files simultaneously:

  • For Adjacent Files: Click on the first file you want to delete. Hold down the Shift key. Click on the last file in the range. This action will select all files between the first and last one clicked.
delete multiple files that are adjacent
  • For Non-Adjacent Files: Hold down the Command (⌘) key. Click on each file you wish to delete. This allows you to select multiple files that are not next to each other.
delete multiple files that are not adjacent

Once the files are selected, delete them using your preferred method.

Deleting multiple files at once can significantly improve file management efficiency.

Delete files using Terminal commands

For advanced users, the Terminal provides a powerful way to delete files and folders directly using command-line instructions.

This method bypasses the Trash and deletes files immediately, so it’s important to be cautious to avoid accidentally deleting important data.

To delete files using the Terminal app:

  1. Open Terminal located in Applications > Utilities.
  2. In the Terminal window, type in one of the following commands:
    • rm -f when you want to force delete files
    • rm -rf when you want to force delete folders
  3. Press space and then drag and drop the file/folder you wish to delete.
  4. Press Return.
  5. In case the file is protected, use sudo rm -f and enter your administrator password when prompted. This will force delete a file that is protected.
rm terminal command

Be extremely careful when using the rm command, especially with the -f (force delete) and -r (recursive delete) options, as these actions lead to permanent deletion and cannot be undone.

Delete hidden files on Mac

Hidden files are often system files that are not visible by default to prevent accidental modification or deletion.

However, there may be times when you need to delete such files to free up space or remove unwanted files.

To reveal hidden files, open a Finder window, press Command (⌘) + Shift (⇧) + Period (.)

display hidden files using keyboard shortcut

This keyboard shortcut toggles the visibility of these invisible files, making them appear as semi-transparent icons.

If you wanna learn all the ways to show hidden folders and files, check out our detailed guide on how to view hidden files on Mac.

Once these files are visible, you can select and delete them just like any other file.

How to delete locked files on Mac

Sometimes, when attempting to delete a specific file on your Mac, you may encounter an error message telling you that the file is locked or in use, preventing its deletion.

To remove a locked file, follow these steps:

  1. Find the locked file in Finder.
  2. Click on the file to select it, then press Command (⌘) + I to open the Get Info window.
  3. In the Info window, uncheck the Locked checkbox to unlock the file.
uncheck locked checkbox to delete locked file on mac

You can now drag the file to the Trash. You can also hold down the Option key, click File in the menu bar and select Delete Immediately.

delete immediately menu action

If you continue to face issues, restarting your Mac can help clear any temporary locks that applications might have on certain files.

How to recover deleted files on Mac

Removing important files accidentally can be stressful, but there are several ways to restore removed files on your Mac:

  1. If you haven’t emptied the Trash, you can quickly recover your files. Open the Trash, locate the deleted file, right-click it, and select Put Back to restore it to its original location.
  2. If you have Time Machine set up, you can restore files from a backup. Connect your Time Machine drive, go to the folder where the file was located, click the Time Machine icon, and select Enter Time Machine. Find the file and click Restore.
  3. If the file isn’t in the Trash and you don’t have a backup, data recovery software can help. Install and run the software, select the drive to scan, and let the program search for deleted files.
  4. If you use cloud services like iCloud Drive, Dropbox, or Google Drive, your deleted files might be recoverable from there.
  5. If none of the above methods work, consider contacting a professional data recovery service. They have specialized tools for recovering lost data from your Mac’s hard drive.

Note: To increase the chances of successful data recovery, avoid creating new files or downloading data after you’ve deleted important files, as this can overwrite the deleted files making them unrecoverable.

Conclusion

Managing and deleting files on Mac effectively is essential for maintaining your computer’s health and ensuring you have sufficient storage space.

Whether you’re removing a single unwanted file or clearing out multiple files, various methods are available at your disposal.

By incorporating these methods into your routine, you can maintain optimal performance and keep your Mac files organized. Effective file management is crucial in maintaining your Mac’s performance.

Share this post on your favorite social media
Keep Your Mac Fast and Secure
Optimize your Mac and stay malware-free with SpyHunter

For a better understanding of our policies, please review our Free Trial Offer below, EULA, and Privacy/Cookie Policy.

SpyHunter Free Trial: Important Terms & Conditions

The SpyHunter Trial version includes, for one device, a one-time 7-day Trial period for SpyHunter 5 Pro (Windows) or SpyHunter for Mac, offering comprehensive malware detection and removal functionality, high-performance guards to actively protect your system from malware threats, and access to our technical support team via the SpyHunter HelpDesk. You will not be charged upfront during the Trial period, although a credit card is required to activate the Trial. (Prepaid credit cards, debit cards, and gift cards are not accepted under this offer.) The requirement for your payment method is to help ensure continuous, uninterrupted security protection during your transition from a Trial to a paid subscription should you decide to purchase. Your payment method will not be charged a payment amount upfront during the Trial, although authorization requests may be sent to your financial institution to verify that your payment method is valid (such authorization submissions are not requests for charges or fees by EnigmaSoft but, depending upon your payment method and/or your financial institution, may reflect on your account availability). You can cancel your Trial by contacting EnigmaSoft’s payment processor (identified in your confirmation email) or EnigmaSoft directly no later than two business days before the 7-day Trial period expires to avoid a charge coming due and being processed immediately after your Trial expires. If you decide to cancel during your Trial, you will immediately lose access to SpyHunter. If, for any reason, you believe a charge was processed that you did not wish to make (which could occur based on system administration, for example), you may also cancel and receive a full refund for the charge any time within 30 days of the date of the purchase charge. See FAQs.

At the end of the Trial, you will be billed upfront immediately at the price and for the subscription period as set forth in the offering materials and registration/purchase page terms (which are incorporated herein by reference; pricing may vary by country per purchase page details) if you have not timely canceled. Pricing typically starts at $72 for 3 months (SpyHunter Pro Windows) and $42 for 3 months (SpyHunter for Mac). Your purchased subscription will be automatically renewed in accordance with the registration/purchase page terms, which provide for automatic renewals at the then applicable standard subscription fee in effect at the time of your original purchase and for the same subscription time period, provided you’re a continuous, uninterrupted subscription user. Please see the purchase page for details. Trial subject to these Terms, your agreement to EULA/TOS, Privacy/Cookie Policy, and Discount Terms. If you wish to uninstall SpyHunter, learn how.

For payment on the automatic renewal of your subscription, an email reminder will be sent to the email address you provided when you registered before your next payment date. At the onset of your trial, you will receive an activation code that is limited to use for only one Trial and for only one device per account. Your subscription will automatically renew at the price and for the subscription period in accordance with the offering materials and registration/purchase page terms (which are incorporated herein by reference; pricing may vary by country per purchase page details), provided that you are a continuous, uninterrupted subscription user. For paid subscription users, if you cancel, you will continue to have access to your product(s) until the end of your paid subscription period. If you wish to receive a refund for your then current subscription period, you must cancel and apply for a refund within 30 days of your most recent purchase, and you will immediately stop receiving full functionality when your refund is processed.

For CALIFORNIA CONSUMERS, please see the notice provisions:
NOTICE TO CALIFORNIA CONSUMERS: Per the California Automatic Renewal Law, you may cancel a subscription as follows:

  1. Go to www.enigmasoftware.com and click the "Login" button at the top right corner.
  2. Log in with your username and password.
  3. In the navigation menu, go to "Order/Licenses." Next to your order/license, a button is available to cancel your subscription if applicable. Note: If you have multiple orders/products, you will need to cancel them on an individual basis.

Should you have any questions or problems, you can contact our EnigmaSoft support team by phone at +1 (888) 360-0646 (USA Toll-Free) / +353 76 680 3523 (Ireland/International) or by email at support@enigmasoftware.com.
How do you cancel a SpyHunter Trial? If your SpyHunter Trial was registered via MyCommerce, you can cancel the trial via MyCommerce by logging into the MyAccount section of MyCommerce (see your confirmation email for further details). You can also contact MyCommerce by phone or email to cancel. To contact MyCommerce via phone, you can call +1-800-406-4966 (USA Toll-Free) or +1-952-646-5022 (24x7x356). You can contact MyCommerce by e-mail at ordersupport@mycommerce.com. You can easily identify if your trial was registered via MyCommerce by checking the confirmation emails that were sent to you upon registration. Alternatively, all users may also contact EnigmaSoft Limited directly. Users can contact our technical support team by emailing support@enigmasoftware.com, opening a ticket in the SpyHunter HelpDesk, or calling +1 (888) 360-0646 (USA) / +353 76 680 3523 (Ireland/International). You can access the SpyHunter HelpDesk from SpyHunter's main screen. To open a support ticket, click on the "HelpDesk" icon. In the window that appears, click the "New Ticket" tab. Fill out the form and click the "Submit" button. If you are unsure of what "Problem Type" to select, please choose the "General Questions" option. Our support agents will promptly process your request and respond to you.

———

SpyHunter Purchase Details
You also have the choice of subscribing to SpyHunter immediately for full functionality, including malware removal and access to our support department via our HelpDesk, typically starting at $42 for 3 months (SpyHunter Basic Windows) and $42 for 3 months (SpyHunter for Mac) in accordance with the offering materials and registration/purchase page terms (which are incorporated herein by reference; pricing may vary by country per purchase page details). Your subscription will automatically renew at the then applicable standard subscription fee in effect at the time of your original purchase subscription and for the same subscription time period, provided you’re a continuous, uninterrupted subscription user and for which you will receive a notice of upcoming charges before the expiration of your subscription. Purchase of SpyHunter is subject to the terms and conditions on the purchase page, EULA/TOS, Privacy/Cookie Policy and Discount Terms.

———

General Terms
Any purchase for SpyHunter under a discounted price is valid for the offered discounted subscription term. After that, the then applicable standard pricing will apply for automatic renewals and/or future purchases. Pricing is subject to change, although we will notify you in advance of price changes.
All SpyHunter versions are subject to your agreeing to our EULA/TOS, Privacy/Cookie Policy, and Discount Terms. Please also see our FAQs and Threat Assessment Criteria. If you wish to uninstall SpyHunter, learn how.