In order to truly delete files and data from your hard drive, you'll need to fill the space those files once occupied. Pressing the Delete key and emptying the Trash bin won't cut it—sensitive files could still be retrieved by hackers and security experts. Macs include a built-in utility to completely remove deleted files from your hard drive, while Windows users will need to install third-party software to get the job done. Learn how to use Secure Empty Trash (Mac) and Eraser (Windows) to get rid of deleted files for good.

Method 1
Method 1 of 4:

Using Eraser in Windows

  1. 1
    Download Eraser from the developer's website. Eraser, a program recommended by security experts, installs an option in the right-click menu that allows you to securely delete (“wipe”) any file or folder with a click.[1] You can also use Eraser to fill the space that once housed your older deleted files with brand new data.
    • The installer will download to your default download folder (usually called “Downloads”).
  2. 2
    Run the installer. Double-click the Eraser installer, then accept the license agreement. Choose “Complete” as your setup type, click “Next,” and finally, “Install.” When you see a box with a Finish button, click it to complete the installation.
    Advertisement
  3. 3
    Locate files to delete in Windows File Explorer.[2] If there are particular files on your computer that you'd like to permanently delete, press Win+E to launch Windows File Explorer, then browse to the folder containing the files.
    • To select multiple files or folders at once, hold down the Ctrl key as you click their names.
  4. 4
    Right-click the file(s), then select "Eraser > Erase". This will wipe the files from your computer completely, bypassing the recycle bin. This can take several minutes, depending computer speed and file size.
    • You can also delete entire folders this way.
  5. 5
    Launch Eraser to permanently wipe data from past deleted files. To make sure sensitive data you deleted at a previous time is completely wiped from your computer, you can completely wipe all of your previously deleted files by creating and running a new task in Eraser. Press Win+S to launch the Windows search box, then type Eraser into the blank. When you see “Eraser” appear in the search results, click it to launch the program.
    • Running Eraser on the drive can take several hours, depending on your computer and drive size. You can use the computer while the process runs, but it might be slow. You may want to run it overnight.
  6. 6
    Click “Settings” to view the erasure method options. Erasure methods are specific patterns that are filled in to replace the data left over from deleted files. Different methods run the patterns several times (each instance is called a “pass”) to ensure that the data is truly wiped forever. You'll need to select an option for both "Default file erasure method” and “Default unused space erasure method.”
  7. 7
    Choose “US Army” or “Air Force” erasure methods. “US Army” and “Air Force” provide fast but effective wiping. While other options have higher passes (some up to 35 passes), 3-pass methods like 'US Army" and "Air Force" provide some extra insurance. Click “Save Settings” when you're done.
  8. 8
    Click the down arrow next to “Erase Schedule,” then click “New Task.” Now you'll set up a task that can be run immediately.
  9. 9
    Select “Run manually,” then “Add Data” to choose which data to wipe. Because the files have already been deleted, select “Unused Disk Space” and choose your main hard drive from the list. Click “OK.”
  10. 10
    Close all programs. To ensure that Eraser runs without issue, close all open programs except for Eraser.
  11. 11
    Right-click “Erase Schedule” to access the list of tasks. Click on the task you just created (it should say “Unused Disk Space”) and select “Run Now.” A progress bar will appear, showing you the progress of the task. When the process is complete, the progress bar will reach 100%. At that point, the files you deleted earlier will be wiped from the hard drive.
  12. Advertisement
Method 2
Method 2 of 4:

Emptying Trash Securely in Mac OS X

  1. 1
    Move files and/or folders to the Trash.[3] Do this by dragging files or folders to the Trash bin icon on the dock.
  2. 2
    Open the Trash to view deleted files. Files you've deleted appear in the Trash bin. Click the Trash icon on the dock to see what's in the Trash.
  3. 3
    Click the Finder icon on the dock, then open the Finder menu. This is where you'll be able to access the option to permanently delete files you've moved to the trash.
  4. 4
    Select “Secure Empty Trash.” A dialog will appear, asking “Are you sure you want to erase the items in the Trash permanently using Secure Empty Trash?” Click “OK” to remove. This process can take anywhere from a few minutes to several hours, depending on how big your Trash bin is.
  5. 5
    Format your hard drive.[4] If you'd prefer to delete all of the files on the computer instead of just a select few, you can format the hard drive. This option will completely destroy all data on your computer and then reinstall Mac OS X. It can take several hours if you have a big drive.
  6. Advertisement
Method 3
Method 3 of 4:

Formatting Your Mac Hard Drive

  1. 1
    Connect to the Internet, then restart the Mac.[5] Use this method if you would prefer to delete everything on your hard drive, including personal settings and data. As soon as you hear the startup chime, quickly press and hold Command+R on the keyboard to launch OS X Recovery. If the computer boots back into the desktop, you'll need to restart again and make sure you press the keys as soon as you hear the chime.
  2. 2
    Click “Disk Utility,” then click “Continue.” Select the drive you want to format, then click over to the “Erase” tab.
    EXPERT TIP
    Gonzalo Martinez

    Gonzalo Martinez

    Computer & Phone Repair Specialist
    Gonzalo Martinez is the President of CleverTech, a tech repair business in San Jose, California founded in 2014. CleverTech LLC specializes in repairing Apple products. CleverTech pursues environmental responsibility by recycling aluminum, display assemblies, and the micro components on motherboards to reuse for future repairs. On average, they save 2 lbs - 3 lbs more electronic waste daily than the average computer repair store.
    Gonzalo Martinez
    Gonzalo Martinez
    Computer & Phone Repair Specialist

    Use “Disk Utility” to completely erase data. Gonzalo Martinez, an Apple repair specialist, says: “When you put data in the trash, and then you empty your trash, the hard drive is only writing a zero over the data. To make sure the trash is completely empty, you can go into “Disk Utility” and erase the empty space.”

  3. 3
    Choose “Mac OS Extended (Journaled)” in the Format area. This is also where you'll give your disk a new name (you can even just call it “Mac”).
  4. 4
    Click “Security Options,” then move the slider one notch to the right. This will ensure that all data is wiped before the installation.
  5. 5
    Click “Erase.” Once the format completes (this could take hours), the computer will boot into a brand new fresh installation of Mac OS X.
  6. Advertisement
Method 4
Method 4 of 4:

Formatting Your Windows Hard Drive with DBAN

  1. 1
    Find a Windows installation disc.[6] This method should only be performed by advanced users. Formatting the hard drive erases everything on the computer, including Windows. You'll need an installation disc to reinstall the operating system after you format the drive. You can borrow one from a friend, as long as it's the same version you have installed currently.
  2. 2
    Download DBAN (Darik's Boot and Nuke). The only way to completely wipe your hard drive clean is to use a third-party “nuke” tool. Experts recommend DBAN, which is free. This will download an ISO image of DBAN to your computer.
  3. 3
    Burn DBAN to a CD or DVD. See Burn ISO Files to DVD for tips on properly burning an ISO file to disc.
  4. 4
    Insert the burned DBAN CD/DVD and restart the computer.[7] The computer will reboot into DBAN, which will walk you through formatting your hard disk.
  5. 5
    Press Enter for “Interactive Mode.” This will allow you to specify how DBAN formats the drive.
  6. 6
    Press the spacebar to select the drive to be formatted, then press F10 to begin. This process will take several hours. The actual length depends on hard disk size and speed. Look at the “Remaining” time in the top right corner of the screen to keep track of your progress.
  7. 7
    Eject the DBAN CD or DVD when you see the word “Pass.” When you see “Pass,” the wipe is complete. Your drive has been erased and re-written.
  8. 8
    Insert the Windows installation disc and reboot the computer. Now you'll begin the process of installing Windows on your freshly-formatted hard drive. Rebooting the computer will boot directly into the Windows installer. Click “Install” or “Next” to begin the installation, then follow the screens to select your installation options.
  9. Advertisement

Community Q&A

  • Question
    When deleting files, is there a way to keep the information that's in the file? I am not computer literate.
    Community Answer
    Community Answer
    By definition, "deleting" a file means getting rid of the information that is in the file. You can copy the file somewhere else, like a flash drive, or e-mail it to yourself so that you can access it again in the future. If you don't want to lose the file, it's not a good idea to delete it.
  • Question
    How can I permanently remove sensitive files and data from an Android phone?
    Community Answer
    Community Answer
    Go into Settings < System < Reset options < Factory reset. Your phone will be wiped. Be sure to back up first.
  • Question
    Does the free version of Eraser work for permanently deleting files?
    Jerbinson
    Jerbinson
    Community Answer
    Technically speaking, permanent deletions doesn't really exist, unless you destroy the hard drive, so putting so much effort into deletion is usually not helpful.
Advertisement

About This Article

Gonzalo Martinez
Co-authored by:
Computer & Phone Repair Specialist
This article was co-authored by Gonzalo Martinez and by wikiHow staff writer, Nicole Levine, MFA. Gonzalo Martinez is the President of CleverTech, a tech repair business in San Jose, California founded in 2014. CleverTech LLC specializes in repairing Apple products. CleverTech pursues environmental responsibility by recycling aluminum, display assemblies, and the micro components on motherboards to reuse for future repairs. On average, they save 2 lbs - 3 lbs more electronic waste daily than the average computer repair store. This article has been viewed 326,715 times.
How helpful is this?
Co-authors: 25
Updated: July 22, 2020
Views: 326,715
Advertisement