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.
- Connect the USB drive to the computer.
- Now, the USB Drive will be displayed in the This PC section.
- Right-click as shown in the screenshot and select the option Scan with Microsoft Defender.
- After launching the scan, depending upon whether the USB drive has a lot of files or a few files the scan will be completed.
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.
- Insert the USB drive into the computer.
- On This PC section, right-click on the USB drive.
- From the menu, select Format.
- When the Format dialog box appears, click on the Quick format checkbox under Format options.
- Then click on the button Start.
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.
- Press Windows + I to access the settings.
- Click on Windows Update on the left-hand panel.
- Navigate to Advanced Options.
- Then click on Recovery.
- Click on the option Restart Now under Advanced Startup.
- When the PC restarts, press F4 to enter Safe Mode.
- Access the USB drive and delete the files.
- 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.
- Open Command Prompt on your computer.
- Then enter the following command.
- In the above command, “E” denotes the E Drive in my computer that represents the USB drive connected to it.
- 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.
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.
- Insert the USB drive into the computer.
- Next, open Command Prompt.
- Enter the following command.
chkdsk e: /f /x
- 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.
- 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.
- Open the command prompt.
- Type the following command disk part and press enter
- Then type DISKPART list disk and press enter.
- This will list out all the available disks on the computer, including the USB drive.
- 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.
- Next, type the following command.
Attributes disk clear randomly
- Press Enter.
- Close the command prompt after the attribute is cleared by typing in exit and hitting enter.
- 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!