Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Delete Files That Cannot Be Deleted

Learn how to delete files that cannot be deleted with clear steps, practical context, and useful troubleshooting guidance.

Table of Contents

This updated guide examines How to Delete Files That Cannot Be Deleted and organizes the essential facts, background, and practical takeaways in clear American English.

Method 1of 7:

Deleting Files in Safe Mode on Windows

  1. How to Delete Files That Cannot Be Deleted — contextual image 1 Click the Start buttonHow to Delete Files That Cannot Be Deleted — contextual image 2. It's the button with the Windows logo in the bottom-left corner of the screen. The Start menu will pop up.
  2. How to Delete Files That Cannot Be Deleted — contextual image 3 Click PowerHow to Delete Files That Cannot Be Deleted — contextual image 4. It's in the bottom-left corner of the Start menu. A pop-up menu will appear.
  3. How to Delete Files That Cannot Be Deleted — contextual image 5 Hold down?Shiftwhile clickingRestart. Your computer will begin to restart like usual, but don't release the Shift key until the next step.
  4. How to Delete Files That Cannot Be Deleted — contextual image 6 Release?Shiftwhen the blue screen appears. Once the blue screen appears, you can release the Shift key and proceed.
  5. How to Delete Files That Cannot Be Deleted — contextual image 7 ClickTroubleshoot. It's in the middle of the screen next to an icon that resembles tools.
  6. How to Delete Files That Cannot Be Deleted — contextual image 8 ClickAdvanced options. You'll find this in the middle of the screen next to an icon with three lines next to checkmarks.
  7. How to Delete Files That Cannot Be Deleted — contextual image 9 ClickStartup Settings. This option is on the right side of the page next to an icon that resembles a gear.
  8. How to Delete Files That Cannot Be Deleted — contextual image 10 ClickRestart. It's the button in the lower-right corner of the screen.
  9. How to Delete Files That Cannot Be Deleted — contextual image 11 Press the "Safe Mode" key. This key is usually 4 . Check which number "Enable Safe Mode" is listed next to in the "Startup Settings" menu.
    • If 4 doesn't work, try pressing F4 (you may need to hold down Fn while pressing F4 ).[1]
  10. How to Delete Files That Cannot Be Deleted — contextual image 12 Press?Win+Eto open File ExplorerHow to Delete Files That Cannot Be Deleted — contextual image 13. Once Windows boots up in Safe Mode, open File Explorer.
  11. How to Delete Files That Cannot Be Deleted — contextual image 14 Find the file you want to delete. Use File Explorer to navigate to the folder that contains the file that you want to delete. Double-click a folder to open it.
  12. How to Delete Files That Cannot Be Deleted — contextual image 15 Select the file. Click once the file to select it. This will highlight it in blue.
    • If there are multiple files hold " Ctrl " and click them to select multiple files.
  13. How to Delete Files That Cannot Be Deleted — contextual image 16 Press theDelkey. Doing so will move the file into the Recycle Bin.
    • If you're still unable to delete the selected files, you may need to repair your PC's hard drive before attempting to delete the files again.
  14. How to Delete Files That Cannot Be Deleted — contextual image 17 Empty the Recycle Bin. Once you've moved the correct files into the Recycle Bin, you can proceed with removing them from your PC for good:
    • Right-click the Recycle Bin icon.
    • Click Empty Recycle Bin in the resulting drop-down menu.
    • Click Yes when prompted.
  15. How to Delete Files That Cannot Be Deleted — contextual image 18 Restart your computer. Do the following to exit Safe Mode:
    • Click Start .
    • Click Power .
    • Click Restart .

Method 2of 7:

Using the Command Prompt on Windows

  1. How to Delete Files That Cannot Be Deleted — contextual image 19 Click the Windows Start menuHow to Delete Files That Cannot Be Deleted — contextual image 20. It's the icon with the windows logo. By default, it's in the lower-left corner.
  2. How to Delete Files That Cannot Be Deleted — contextual image 21 Typecmd. This displays the Command Prompt in the Windows Start menu. |
  3. How to Delete Files That Cannot Be Deleted — contextual image 22 Right-click the Command PromptHow to Delete Files That Cannot Be Deleted — contextual image 23and clickRun as administrator. This opens the Command Prompt with administrative privileges.
    • You must be signed in to an Administrative account on Windows to run the Command Prompt as an administrator.
  4. How to Delete Files That Cannot Be Deleted — contextual image 24 Typecd/and press?Enter. This command returns you to your root directory in the Command Prompt.
    • If you to need to change drives in the command prompt, simply type the drive letter followed by a colon (i.e. "D:")
  5. How to Delete Files That Cannot Be Deleted — contextual image 25 Typecdfollowed by the file location and press?Enter. This navigates to the folder the file is located in. Separate each folder with a "". For example "cd usersusernamedocuments".
    • To see a list of files and folders in a directory, type "dir" and press Enter .
  6. How to Delete Files That Cannot Be Deleted — contextual image 26 Typedelfollowed by the file name and press?Enter. For example, "del testfile.txt". This deletes the file.[2]
    • If the file name has spaces in it (i.e. File Name.txt") place the file name in quotations (i.e. del "File Name.txt")

Method 3of 7:

Repairing Disk Errors on Windows

  1. How to Delete Files That Cannot Be Deleted — contextual image 27 Close any open files. When repairing disk errors on Windows, it's wise (though not strictly necessary) to close any open files to prevent further issues. Be sure to save any work you have and close a program by click the "X" icon in the upper-right corner, or use the following steps to close programs in the Task Manager:
    • Press " Ctrl + Shift + Esc " to open the Task Manager.
    • Click an app that is open.
    • Click "End Task' in the lower-right corner.
  2. How to Delete Files That Cannot Be Deleted — contextual image 28 Press?Win+Eto open File ExplorerHow to Delete Files That Cannot Be Deleted — contextual image 29. File Explorer has an icon that resembles a folder with a blue clip.
  3. How to Delete Files That Cannot Be Deleted — contextual image 30 ClickThis PC.It's in the sidebar menu to the left in File Explorer. It has an icon that resembles a computer monitor.
  4. How to Delete Files That Cannot Be Deleted — contextual image 31 Right-clck your computer's hard drive. It's usually the one marked (C:) , below the "Devices and drives" heading. It may be named "OS (C:)" or have your computer name or drive name. Right-clicking it will display a drop-down menu below it.
    • You can double-click the "Devices and drives" heading to expand it if you don't see any hard drives listed there.
    • If your computer has more than one hard drive, click the hard drive on which the file you want to delete is stored.
  5. How to Delete Files That Cannot Be Deleted — contextual image 32 ClickProperties. It's in the drop-down menu. A pop-up window will open.
  6. How to Delete Files That Cannot Be Deleted — contextual image 33 Click theToolstab. This is at the top of the pop-up window.
  7. How to Delete Files That Cannot Be Deleted — contextual image 34 ClickCheck. It's near the top of the window in the box labeled "Error Checking".
  8. How to Delete Files That Cannot Be Deleted — contextual image 35 ClickScan drivewhen prompted. Doing so allows Windows to begin scanning your hard drive for errors.
    • If Windows finds any errors, they will be repaired automatically if possible.
  9. How to Delete Files That Cannot Be Deleted — contextual image 36 Allow the scan to run. This can take several minutes to several hours depending on your selected hard drive's size and number of errors.
  10. How to Delete Files That Cannot Be Deleted — contextual image 37 Try deleting your file again. Now that you've repaired any issues with your hard drive, you should be able to delete any files which were locked due to hard drive issues. Use File Explorer to navigate to the file and click it to select it. Press the " Del " key to delete it.
    • You may still have to use Safe Mode to delete your file if the file is being used by a program or service.
    • If you still can't delete the file in question, the file is most likely either locked by another user or reserved as a system file. Either way, you won't be able to delete the file.

Method 4of 7:

Deleting Files in Safe Mode on Mac

  1. How to Delete Files That Cannot Be Deleted — contextual image 38 Open the Apple menuHow to Delete Files That Cannot Be Deleted — contextual image 39. It's the icon with the Apple logo in the top-left corner of the screen in the menu bar. A drop-down menu will appear.
  2. How to Delete Files That Cannot Be Deleted — contextual image 40 ClickRestart…. It's in the drop-down menu below the Apple icon.
  3. How to Delete Files That Cannot Be Deleted — contextual image 41 ClickRestartwhen prompted. Doing so causes your Mac to begin restarting.
  4. How to Delete Files That Cannot Be Deleted — contextual image 42 Hold down the?Shiftkey. Make sure you do this immediately after clicking Restart , and don't stop until the next step.
  5. How to Delete Files That Cannot Be Deleted — contextual image 43 Release the?Shiftkey at the login window. This ensures that your Mac starts in Safe Mode rather than using regular boot settings.[3]
  6. How to Delete Files That Cannot Be Deleted — contextual image 44 Open the FinderHow to Delete Files That Cannot Be Deleted — contextual image 45. It's the icon that has a blue and white smiley face. You can find it in the Dock at the bottom of your screen.
  7. How to Delete Files That Cannot Be Deleted — contextual image 46 Navigate to the file you want to delete. Use the Finder to navigate to the folder containing the file you want to delete. Double-click the folder to open it.
  8. How to Delete Files That Cannot Be Deleted — contextual image 47 Select the file. Click once the file you want to delete. This highlights the file in blue
    • If there are multiple files you want to delete from one location, you can hold down " Command " while clicking each file you want to delete.
  9. How to Delete Files That Cannot Be Deleted — contextual image 48 ClickFile. It's at the top of the screen. A drop-down menu will appear.
  10. How to Delete Files That Cannot Be Deleted — contextual image 49 ClickMove to Trash. This is in the drop-down menu. Doing so should move the files to the Trash.
    • If you're still unable to delete the selected files, you may need to repair your Mac's hard drive before attempting to delete the files again.
  11. How to Delete Files That Cannot Be Deleted — contextual image 50 Empty the Trash. Once you've moved the correct files into the Trash, you can proceed with removing them from your Mac for good:
    • Click and hold the Trash app icon.
    • Click Empty Trash in the resulting menu.
    • Click Empty when prompted.
  12. How to Delete Files That Cannot Be Deleted — contextual image 51 Restart your Mac. Do the following to exit Safe Mode:
    • Click the Apple menu .
    • Click Restart... .
    • Click Restart when prompted.

Method 5of 7:

Using The Terminal on Mac and Linux

  1. How to Delete Files That Cannot Be Deleted — contextual image 52 Open the Terminal. The Terminal has an icon that resembles a black screen with a text cursor. Use the following steps to open the Terminal on Mac:
    • Click the Magnifying Glass icon in the upper-right corner.
    • TypeTerminalin the search bar.
    • Click the Terminal icon.
  2. How to Delete Files That Cannot Be Deleted — contextual image 53 Typecdand press?Enter. This navigates to the root directory on your computer.[4]
  3. How to Delete Files That Cannot Be Deleted — contextual image 54 Typecd ~/followed by the file location and press?Enter. This navigates to the folder(s) the file is located in. Be sure to separate each folder with a "/". Make sure you use the correct capitalization. For example, "cd ~/documents"
    • You can also type "ls" and press Enter to see a list of folders and files in the current directory.
  4. How to Delete Files That Cannot Be Deleted — contextual image 55 Typermfollowed by a space and the file name and press?Enter. For example, "rm textfile.txt". This deletes the file.
    • If the file name has spaces in it, place the file name in quotations (i.e rm "text file.txt")
  5. How to Delete Files That Cannot Be Deleted — contextual image 56 Typeyand press?Enter. If the file is write-protected, you will need to confirm that you want to delete the file. To confirm, type "y" and press Enter .[5]
    • Alternatively, you can type "rm -f" followed by the file name to force delete the file name.

Method 6of 7:

Repairing Disk Errors on Mac

    1. How to Delete Files That Cannot Be Deleted — contextual image 57 Open the Apple menuHow to Delete Files That Cannot Be Deleted — contextual image 58. Click the Apple logo in the top-left corner of the screen. A drop-down menu will appear.
    2. How to Delete Files That Cannot Be Deleted — contextual image 59 ClickRestart…. It's in the drop-down menu.
    3. How to Delete Files That Cannot Be Deleted — contextual image 60 ClickRestartwhen prompted. Doing so causes your Mac to begin restarting.
    4. How to Delete Files That Cannot Be Deleted — contextual image 61 Hold down the?Command+Rkeys. Do this immediately after hearing the Startup chime.
    5. How to Delete Files That Cannot Be Deleted — contextual image 62 Release the keys when the Apple logo appears. This loads the Recovery menu.
      • The Recovery menu may take a few minutes to appear.
    6. How to Delete Files That Cannot Be Deleted — contextual image 63 ClickDisk Utility. It's next to an icon that resembles a hard disk drive with a stethoscope.
    7. How to Delete Files That Cannot Be Deleted — contextual image 64 ClickContinue. This is in the lower-right corner of the screen. The Disk Utility window will open.
    8. How to Delete Files That Cannot Be Deleted — contextual image 65 ClickView. It's a menu item at the top of the screen. A drop-down menu will appear.
    9. How to Delete Files That Cannot Be Deleted — contextual image 66 ClickShow All Devices. This is in the drop-down menu. You should see a list of your Mac's available storage locations appear on the left side of the screen.
    10. How to Delete Files That Cannot Be Deleted — contextual image 67 Select your Mac's hard drive. It's in the sidebar menu to the left.
      • If your Mac has more than one hard drive, make sure you click the one on which the file you want to delete is stored.
    11. How to Delete Files That Cannot Be Deleted — contextual image 68 Click theFirst Aidicon. It's a tab which resembles a stethoscope at the top of the window.[6]
    12. How to Delete Files That Cannot Be Deleted — contextual image 69 ClickRunwhen prompted. Doing so allows Disk Utility to begin scanning and repairing your Mac's hard drive.

    FAQ

    What is How to Delete Files That Cannot Be Deleted about?

    It provides a structured overview of file, explains the main context, and highlights practical takeaways for readers.

    Why does this topic matter?

    Understanding the main concepts helps readers evaluate the issue, avoid common mistakes, and make better-informed decisions.

    How should readers use this information?

    Use the guidance as a practical starting point, confirm details that may have changed, and follow current product, safety, or security recommendations.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.