TechBuzzPro

Can't Delete Files on SSD? Here's How to Fix It

· 6 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

You can usually fix an SSD that won't delete files by first checking whether the file is read-only, locked by another program, or protected by Windows permissions. The quickest first step is to restart the PC and try again, then check the file's properties and take ownership if needed. If the file still won't go, use built-in tools like Disk Cleanup or the Storage settings page, and as a last resort run a command-line delete or check the drive for errors. Below is a step-by-step guide that walks through the safe order, what each step does, and what to do if nothing works.

What You'll Need

  • A Windows PC (the steps here are for Windows 10 and Windows 11; Mac steps are mentioned where they differ).
  • Administrator rights on the account you are using.
  • Enough free space on the SSD (a nearly full drive can cause odd behaviour).
  • Optional: a backup of any file you are about to delete, in case you change your mind.

Step-by-Step

  1. Restart your computer. A simple restart clears temporary locks held by background programs. After the restart, try deleting the file again by right-clicking it and choosing Delete. If it disappears, you are done.
  2. Close programs that might be using the file. Open Task Manager with Ctrl+Shift+Esc, look for apps that could have the file open (for example, a video player, an editor, or a sync client), and end those tasks. Then try deleting again. On Mac, use Force Quit (Command+Option+Esc) to close apps.
  3. Check if the file is read-only. Right-click the file, choose Properties, and look at the General tab. If Read-only is ticked, clear it, click Apply, then OK, and try deleting again. On Mac, select the file, press Command+I, and unlock the Locked checkbox if it is ticked.
  4. Take ownership and grant full control (Windows). Right-click the file, choose Properties > Security > Advanced. Next to Owner, click Change, type your username, click Check Names, then OK. Tick Replace owner on subcontainers and objects if it appears, then Apply. Back on the Security tab, click Edit, select your user account, tick Full control under Allow, and click OK. Try deleting again.
  5. Use Disk Cleanup for temporary files. If the file is a system temp file or an old update leftover, open Start, type Disk Cleanup, and run it for the SSD. Tick the categories you want to remove (such as Temporary files and Recycle Bin) and click OK. This avoids hunting for individual locked files.
  6. Empty the Recycle Bin. Sometimes a file seems undeletable because it is sitting in the Recycle Bin and the Bin itself is corrupted. Right-click the Recycle Bin on the desktop and choose Empty Recycle Bin. If that fails, open Settings > System > Storage > Temporary files and remove Recycle Bin contents from there.
  7. Delete from the command line. Open Start, type cmd, right-click Command Prompt, and choose Run as administrator. Type del /f /q "full path to file" and press Enter. The /f switch forces read-only files and /q skips the confirmation prompt. For folders, use rmdir /s /q "full path to folder". If you get an access denied message, go back to step 4.
  8. Run a disk check. Open Command Prompt as administrator and type chkdsk C: /f (replace C: with your SSD's letter). Press Enter, type Y to schedule the check at the next restart, then restart the PC. This fixes file-system errors that can block deletion.
  9. Use Safe Mode if the file is still locked. Open Settings > System > Recovery, click Restart now under Advanced startup, then choose Troubleshoot > Advanced options > Startup Settings > Restart. After the restart, press 4 or F4 for Safe Mode. Try deleting the file there. Safe Mode loads only essential drivers, so most locking programs are not running.
  10. Check SSD health and free space. Open Settings > System > Storage to see free space. If the drive is nearly full, move some files off or run Disk Cleanup. For health, open Start, type Optimize Drives, and check the drive status. A failing SSD can cause write and delete errors; if the status shows errors, back up your data immediately and consider replacing the drive.

Common Mistakes

  • Deleting the wrong file. Double-check the file name and path before using command-line delete, because del does not send files to the Recycle Bin.
  • Skipping the restart. Many lock issues disappear after a reboot, so try that before changing permissions.
  • Taking ownership of system files. Changing ownership on Windows system folders can break updates. Only do it for personal files you recognise.
  • Using third-party "force delete" tools from unknown sources. Stick to built-in Windows tools to avoid malware.
  • Ignoring a full drive. An SSD with almost no free space can behave unpredictably; free up at least 10–15% of the capacity.

Tips

  • Before deleting a large folder, move it to another drive first to confirm you do not need it.
  • Use File Explorer's search to locate stray files that are hard to find manually.
  • Keep Windows updated; some file-locking bugs are fixed in cumulative updates.
  • If you use cloud sync (OneDrive, Dropbox), pause syncing before deleting files that are actively syncing.
  • On a Mac, if a file won't delete, check Finder > Go > Go to Folder and try moving it to the Trash, then empty the Trash with Option+Command+Shift+Delete to skip the confirmation.

Troubleshooting

If the file still won't delete after all the steps above, work through these checks in order:

  • Check for malware. Run a full scan with Windows Security (Start > Windows Security > Virus & threat protection > Scan options > Full scan). Some malware locks files.
  • Try a different user account. Create a temporary local administrator account and try deleting from there. If it works, your original profile may have corrupted permissions.
  • Use the built-in Administrator account (advanced). Open Command Prompt as administrator and type net user administrator /active:yes, then sign out and sign in as Administrator. Try deleting the file, then disable the account with net user administrator /active:no.
  • Check if the file is on a compressed or encrypted folder. Right-click the file, choose Properties > Advanced, and see if "Encrypt contents" or "Compress contents" is ticked. Clear it, apply, and try again.
  • Run a full disk check with surface scan. In Command Prompt (admin), type chkdsk C: /f /r and restart. This can take a while but repairs bad sectors that block deletion.
  • Back up and reformat as a last resort. If the SSD is failing or the file system is badly corrupted, copy important files elsewhere, then use Disk Management to format the drive. This erases everything on it, so only do it after a backup.

Frequently Asked Questions

Why can't I delete a file on my SSD?

Common reasons are that the file is read-only, another program is using it, you lack permission, or the file system has errors. Work through the steps above in order.

Does deleting files from an SSD wear it out?

No, normal deletion does not meaningfully wear an SSD. Wear comes from writing data, not from removing files.

Can I recover a file I deleted by mistake?

If you deleted it normally, check the Recycle Bin first. If you used Shift+Delete or command-line delete, you may need file-recovery software, and success is not guaranteed.

Why does Windows say "File in use" when I try to delete?

Another program has the file open. Close the program, or use Task Manager to end the process, then try again.

Is it safe to use the command prompt to delete files?

Yes, if you are careful. The del command permanently deletes files without sending them to the Recycle Bin, so double-check the path before pressing Enter.

What if the file is on a nearly full SSD?

Free up space first. A full drive can cause write and delete errors. Use Disk Cleanup or move large files to another drive.