Table of Contents
    Home / Computers / Are Deleted Files Completely Erased Forever?
    Computers 7 min read

    Are Deleted Files Completely Erased Forever?

    A common misconception when deleting files is that they are completely removed from the hard drive. However, users should be aware that highly sensitive data can still be retrieved from a hard drive even after the files have been deleted because the data is not really gone. Files that are moved to the Recycle Bin (on Microsoft Windows) or Trash (on macOS) stay in those folders until the user empties them. Once they have been deleted from those folders, they are still located in the hard drive and can be retrieved with the right software.

    Deleting vs. erasing files

    When a file is deleted from a hard drive, it is not erased. What is erased is the bit of information that points to the location of the file on the hard drive. The operating system uses these references to build the directory tree structure (the file allocation table), which consists of the file path for every other file on the hard drive. When the path is erased, the file essentially becomes invisible to the operating system. The file still exists, but the operating system doesn’t know how to find it. It is, however, relatively easy to retrieve deleted files with file recovery software.

    Where do deleted files go?

    As mentioned above, files that have been deleted still remain on a computer’s hard drive. The operating system does not know where to locate the file, so it becomes virtually invisible. Sometimes the file’s data remains intact after it’s been deleted, but sometimes it is broken into smaller pieces. If a user tries to recover a file after significant time has passed, they may only be able to recover fragments of the original instead of the whole file.

    Erasing files from the cloud

    Most cloud storage solutions operate on a data redundancy model that duplicates all data so it can be restored in the event of a disaster. Some providers also have a data retention policy that allows them to store data on the provider’s servers for an extended amount of time after a user deletes a file. 

    For most backup and file sharing services like Google Drive or OneDrive , you can delete files either locally or directly on the cloud server, typically through a browser or app. This action does not remove it from the cloud server, but instead just marks the file as deleted and keeps the file around in case recovery is needed. However, most services also offer the ability to permanently delete files—irrevocably removing the file from the system. 

    Here’s how to delete files from popular cloud service providers OneDrive and Google Drive. If you find you aren’t able to delete files from your cloud provider, contact the provider directly to ensure the data has been completely erased. 

    Read also: Network File Recovery: How To ‘Undelete’ A Delete

    How to permanently delete files from OneDrive

    1. Sign in to OneDrive
    2. Select the files or folders you want to delete by checking the box in each file’s upper right corner.
    erase files in onedrive
    1. On the bar at the top of the page, select Delete
    2. Go to the Recycle bin in the left side navigation bar.
    3. To permanently delete a file, select the file within the recycle bin, then select Delete at the top of the page.
    emptying the recycle bin in onedrive
    1. Press Delete again

    permanently deleting files in onedrive

    How to permanently delete files from Google Drive

    1. Sign in to your Google account
    2. Select the file you want to delete by right clicking and selecting Remove at the bottom of the list. 
    3. Go to Trash on the bottom of the left-hand navigation bar.

    Trash button in google drive

    1. Right click on the deleted file you want to delete permanently. Click Delete forever.

    Deleting forever in google drive

    1. Select Delete forever again. 

    permanently erasing in google drive

    How to permanently erase files from a hard drive

    The only way to completely erase a file with no trace is to overwrite the data. The operating system will eventually overwrite files that have no pointers in the directory tree structure, so the longer an unpointed file remains in the hard drive the greater the probability that it has been overwritten. There are also many “file erasing” software products like Eraser (for Windows) and CleanMyMac X (for macOS) that will permanently erase files by overwriting them.

    Permanently erase files in Windows 

    For Windows users, Eraser is a free tool that will overwrite your private data with random patterns until the data is no longer recoverable. It works with almost every version of Windows and offers multiple methods of overwriting your data. The program adds itself to File Explorer, so you can easily select a file, folder, or drive to erase.

    Follow these steps to erase your files with Eraser: 

    1. Download the Eraser installer
    downloading eraser
    1. Open the program, select Settings.
    Eraser settings in windows
    1. Ensure the option to integrate eraser into windows explorer is enabled. 
    2. Open File Explorer.
    3. Right click on a file you want to permanently erase. 
    4. Hover over the Eraser command in the pop-up menu and click Erase
    erasing files permanently in eraser
    1. When the confirmation window appears, click Yes
    erasing files with eraser

    Permanently erase files in Mac

    For Mac users, files can be permanently deleted without a third-party tool. (Although there are tools available for permanently deleting files if that route is preferred.)

    1. Open the Finder.
    2. Find the file(s) you want to delete and highlight the file. 
    3. At the top of the page, go to File. Hold down the Option key. 
    4. Click Delete Immediately.
    deleting files in mac
    1. Click Delete. This will permanently delete the file, meaning it cannot be restored.

    Users can also permanently delete files using the trash can. 

    1. Open the Finder. Click the file you want to permanently delete, right click, and press Move to Trash.
    trashing mac files permanently
    1. Right click the trash bin icon at the bottom of the screen within the dock. 
    2. Click Empty Trash.
    emptying trash in mac

    Permanently erase files on a tablet or phone 

    Vulnerable information is also stored on mobile devices such as tablets and phones. These devices rely on flash storage similar to that used in SSDs, meaning there is no foolproof way to securely delete the file. The data stored on the mobile device must instead be encrypted. 

    Because mobile applications have limited control over the file systems on phones and tablets, it’s difficult to recover deleted files. Once a file is deleted, it likely will not make an unwanted return. 

    Since secure deletion isn’t a large concern with mobile devices, users should instead focus on protecting their device from unwanted visitors. They should ensure a fingerprint or face ID or PIN code is enabled to prevent an unwanted user from accessing the device. All iOS and Android devices apply encryption by default, so as long as the lock screen is protected, the data is protected as well. 

    Even though deleted data is difficult to recover on a mobile device, a user should still perform a factory reset to securely wipe the data if they’re getting rid of the device. 

    For iOS users: 

    1. Go to Settings > General
    2. Scroll down and select Reset. 
    3. Choose Erase all Content and Settings. 

    For Android users: 

    1. Go to Settings > System
    2. Select Advanced > Reset options
    3. Select Erase all data (factory reset) 


    Was this Article helpful? Yes No