Stop OS X From Deleting Trashed Files Permanently

Stop OS X From Deleting Trashed Files Permanently

October 1, 2018 By alberto

    What’s great about owning a Macbook is that you have the option to delete files and have them permanently deleted when the right time comes. Deleted files stay in the trash bin until you are ready to get rid of them for good. That way, you have time to think about if you really need the file, or you can recover an accidentally deleted one.

    Unfortunately, there are some Macbooks that permanently delete trashed files, with them disappearing from the trash and being gone for good. And even when tweaking with all the options from Preferences, the solution can’t be found! While this may seem like a convenience for some, it’s a hindrance to others who opt to delete them at a later time.

    It’s a common problem, which may be a glitch coming from the trash files. There isn’t a friendly solution, as it gets a bit technical and you’ll have to delve deeper into your OS X. But it’s a fairly easy way to fix the problem, and you’ll be able to use your Macbook and its trash with ease after.

    How to Prevent OS X From Deleting Trashed Files Permanently

    This can be solved via Terminal, though you will need to be careful when following the steps. If not, you may end up accidentally deleting some of the essential parts of your hard drive! With that in mind, here’s how to stop your OS X from permanently deleting trashed files for good:

    1. Go to Application > Terminal
    2. Copy paste this code into the dialog box when prompted: sudo rm –ri ~/.Trash
    3. Enter the code by pressing Return and you will be asked for your password. Input your password and press Return again.
    4. You will be asked to remove files from the .Trash folder. Type yes and Return.
    5. Log out of your account and log back in, and check if that solves the issue.

    If ever that doesn’t work, try repeating the process but this time with the specific volumes and folders. Type df –H to get the different volume names. Since Unix doesn’t recognize file names without a backlash, it may get pretty stressful having to type it individually. So here’s what to do to avoid the hassle:

    1. Go back to step 2 and type in sudo rm –ri with a space
    2. Drag volume to the Terminal window
    3. Press Delete and type in /.Trashes
    4. Log out and log back in to see if the problem has been resolved

    And there you have it! It isn’t the easiest solution, but it usually works. If the problem still persists, you may be able to find different solutions online, or have it checked by a technician. It’s also best to contact Apple Support if you still have your warranty, as they may be able to repair or replace your Macbook for you.