Cannot Delete Files from USB Drive: How to Fix

Unable to Delete Files from USB Drive Connected to your Windows 11, 10 PC. Here are the Best Methods to Fix Cannot Delete Files from USB Drive.

Are you not able to delete one or more files from a USB drive? I mean, when you try to remove the files, they do get deleted momentarily. However, when you revisit the folder in the USB drive or directly open the USB drive, the deleted files will be present again.

This is problematic when you want to delete a few files to make space in the USB drive for new files, but the older files do not get deleted. In this guide, I will explain to you why this issue happens with the USB drive and what you can do to fix the issue.

Why Files Are Not Deleted from the USB drive?

Here are the common reasons why you are not able to delete files.

  • The files you are trying to delete are write-protected. It means you can only see and use them. You cannot modify them in any way, including deletion.
  • The file you are trying to delete is open on any application.
  • Those files you are trying to delete are corrupted.
  • The USB drive is infected with malware. So, the files keep replicating and don’t get deleted.
  • You may not have permission to modify the files or file system on all the USB drives you are connecting to a particular computer.

Here are the various troubleshooting methods you can implement to permanently delete the files from the USB drive.

1. Close the File from the Application before  Deleting

Before deleting a file, ensure that it has been closed and it is not open in any application.

For example, if there is an image file of JPEG file name extension you wish to delete from a USB drive, make sure the image file is not open in Adobe Photoshop, Paint 3D, or similar apps meant for handling the image files.

Once you are sure that the file is not open anymore, open the USB drive, select the file you want to delete, and press Shift + Delete for permanent deletion.

2. Scan for Malware Presence in the UBS Drive

Most of the time, I have experienced that the USB drive, when subjected to malware attacks, the files within it starts misbehaving. Either these files won’t open in the corresponding app meant for them, or they won’t be deleted directly from the USB drive.

Also, when you connect the USB drive to any computer, there are high chances that the virus will find its way into the computer. So, it is important to run a scan for malware right after you connect the USB drove to a computer.

  1. Connect the USB drive to the computer.
  2. Now, the USB Drive will be displayed in the This PC section.
  3. Right-click as shown in the screenshot and select the option Scan with Microsoft Defender.
    scan USB drive for malware
  4. After launching the scan, depending upon whether the USB drive has a lot of files or a few files the scan will be completed.
    scanning for malware on Windows OS

If there is any malware found on the USB drive, then the anti-virus app will remove it on its own. You may manually check and remove them.

Note that, if you have installed some other anti-virus application, you may also use that to perform a scan for the malware attack.

3. Format the USB Drive and Delete All the Files

This troubleshooting method will completely format the USB drive by permanently deleting all the files contained in the USB Drive. When you go for formatting you cannot selectively delete one or two files. All files present on the USB drive will be completely deleted.

  1. Insert the USB drive into the computer.
  2. On This PC section, right-click on the USB drive.
  3. From the menu, select Format.
    format the USB drive on windows OS
  4. When the Format dialog box appears, click on the Quick format checkbox under Format options.
  5. Then click on the button Start.
    confirm quick format USB drive

4. Access the Computer in Safe Mode and Delete Files from the USB Drive

Users have reported that if they are not able to delete a file from the USB drive, then accessing the computer using Safe Mode and trying to remove the files from the USB stick was successful.

  1. Press Windows + I to access the settings.
  2. Click on Windows Update on the left-hand panel.
    click on Windows update
  3. Navigate to Advanced Options.
    tap on Advanced Options
  4. Then click on Recovery.
    tap on Recovery
  5. Click on the option Restart Now under Advanced Startup.
    advanced startup
  6. When the PC restarts, press F4 to enter Safe Mode.
  7. Access the USB drive and delete the files.
  8. Once you’re done deleting the files from the USB drive, restart the computer to exit the Safe Mode.

5. Use Command Prompt to Delete the Files from the USB Drive

With the command prompt, you can use a command named Cipher to completely delete the files from the USB drive.

  1. Open Command Prompt on your computer.
  2. Then enter the following command.
    Cipher /wE:\filename
  3. In the above command, “E” denotes the E Drive in my computer that represents the USB drive connected to it.
  4. Otherwise, you can simply enter Cipher /wE: and press the enter key to completely erase the drive and permanently delete all the files present on it.
    cipher command prompt

6. Use the Check Disk Tool to Fix Corrupt Files on the USB Drive

Here is a free tool on Windows OS that you can use to check for issues with the files and fix them automatically.

  1. Insert the USB drive into the computer.
  2. Next, open Command Prompt.
  3. Enter the following command.
    chkdsk e: /f /x
  4. You will get a message that Windows has checked for files for possible problems. As you may check from the screenshot, no problem was found on the USB drive that I have connected to my PC.
    check disk
  5. If there would be an issue with the files in the USB drive, then the system will fix it automatically. While that takes place wait and do not interrupt the process.

7. Clear the Attribute of the Files

This means you have to change the status of the files from read-only to make them writable. You can then modify the files. Then you will be able to delete the files completely from the USB drive.

  1. Open the command prompt.
  2. Type the following command disk part and press enter
  3. Then type DISKPART list disk and press enter.
  4. This will list out all the available disks on the computer, including the USB drive.
  5. Type Select disk 1 and press enter.

Note that, Disk 1 or Disk 2 will vary from user to user depending upon how disks are listed on your PC. A good way to ensure the correct disk is by visiting This PC and checking out the storage occupied by the drive, which denotes the USB drive.

  1. Next, type the following command.
    Attributes disk clear randomly
  2. Press Enter.
    change attribute of file on USB drive
  3. Close the command prompt after the attribute is cleared by typing in exit and hitting enter.
  4. Now, access the contents of the USB drive and try to delete the files. They should be deleted successfully.

So, these are the various ways by which you can fix the issue of files not deleting on a USB drive connected to your computer.

If you've any thoughts on Cannot Delete Files from USB Drive: How to Fix, then feel free to drop in below comment box. Also, please subscribe to our DigitBin YouTube channel for videos tutorials. Cheers!

Share
Swayam Prakash
Swayam is a professional content creator with 6-years of experience in conceptualizing, creating, and managing tech-based content for notable online publishing firms. At DigitBin, he creates quality-rich and simple content related to Windows OS, Android, iOS, social media, cloud computing, and other general consumer technology. Contact Me on Linkedin

Leave a Reply

Your email address will not be published. Required fields are marked *