What write protection means and why it blocks deletion
A write-protected USB drive is one that has been locked to prevent any changes — you can read files from it, but you cannot delete, modify, or add anything to it. This protection exists for two reasons: either the drive itself has a physical lock switch, or the drive's firmware has been set to read-only mode by software.
When you try to delete a file from a write-protected drive, Windows or Mac will show an error message saying the drive is read-only or that you do not have permission. The file stays put. To delete anything, you must first remove the protection.
Key Takeaways
- Check for a physical lock switch on the USB drive itself — if present, slide it to the unlocked position before attempting any deletion.
- On Windows, right-click the drive in File Explorer, select Properties, and uncheck the "Read-only" box if it appears.
- On Mac, select the drive on the desktop, go to File menu, choose Get Info, and uncheck "Locked" under the General section.
- If software protection persists after these steps, you may need to use a manufacturer tool or command-line utility to fully reset the drive.
- Deleting files from a write-protected drive requires removing the protection first — there is no way around it.
Check for a physical lock switch first
Many USB drives, especially older ones or those designed for data security, have a small physical switch on the side or end of the drive. This switch is usually labeled with a lock icon and has two positions: locked and unlocked.
Before trying any software fixes, inspect your USB drive carefully. If you see a switch, slide it toward the unlocked position. Then plug the drive back into your computer and try deleting a file. If the switch was the cause, the protection will be gone immediately.
Remove read-only protection on Windows
If your drive has no physical switch, the protection is set in software. On Windows, open File Explorer and locate your USB drive in the left sidebar. Right-click on the drive name and select Properties from the menu.
In the Properties window, look at the bottom of the General tab. If you see a checkbox labeled "Read-only" and it is checked, click it to uncheck it. Then click Apply and OK. Unplug the drive, wait a few seconds, and plug it back in. You should now be able to delete files.
If you do not see a read-only checkbox, the protection may be at the file level rather than the drive level. Right-click the specific file you want to delete, select Properties, and uncheck "Read-only" there. Then try deleting it again.
Remove read-only protection on Mac
On a Mac, click on your USB drive icon on the desktop to select it. Then open the File menu at the top of the screen and choose Get Info. A window will open showing details about the drive.
Scroll down to the General section. If you see a checkbox labeled "Locked," click it to uncheck it. Close the Get Info window. You should now be able to delete files from the drive. If the Locked option does not appear, try ejecting the drive, waiting a few seconds, and reinserting it.
Use manufacturer tools for persistent protection
Some USB drives come with built-in security software that creates write protection at the firmware level. If the steps above do not work, you may need to use a tool provided by the drive's manufacturer.
Visit the manufacturer's website — common brands include SanDisk, Kingston, Corsair, and Transcend — and search for their USB security or recovery software. Download the tool for your specific drive model, run it on your computer, and look for an option to disable write protection or reset the drive to factory settings. Follow the on-screen instructions carefully, as these tools vary by brand.
Reset the drive using command line (Windows)
If manufacturer tools are not available or do not work, you can try using the Windows command line to remove protection. Open Command Prompt as an administrator by typing "cmd" in the Windows search box, right-clicking Command Prompt, and selecting "Run as administrator."
Type the following command and press Enter: diskpart. Then type list disk to see all connected drives. Identify your USB drive by its size. Type select disk X (replace X with your drive's number), then type attributes disk clear readonly. Type exit to close diskpart. Unplug and replug the drive to see if protection is removed.
This method works for many drives but not all. If it does not work, your drive may require the manufacturer's specific tool or may have hardware-level protection that cannot be removed without specialized equipment.
What to do if nothing works
If you have tried all the steps above and the drive remains write-protected, the protection may be permanent — either by design or because the drive is damaged. Some drives are sold as read-only for archival purposes and cannot be unlocked.
At this point, you have two options: contact the drive manufacturer's support team with your drive model number and serial number, or accept that the drive functions as read-only storage. You can still read and copy files from it, but you will not be able to delete or modify anything on it.
Frequently Asked Questions
Can I delete files if I copy them to my computer first?
Yes. Write protection only prevents changes to the drive itself. You can copy files from a write-protected drive to your computer's hard drive without any problem, and then delete them from your computer. The original files on the USB drive will remain unchanged.
Will removing write protection erase my files?
No. Removing write protection simply allows you to make changes to the drive. Your files stay on the drive until you actively delete them. The only exception is if you use a manufacturer reset tool, which may erase everything — check the tool's description before running it.
Why would someone put write protection on a USB drive?
Write protection is used to prevent accidental deletion, protect sensitive documents, or create a read-only backup. Schools and offices often use write-protected drives to distribute files that should not be modified. Some people also use it as a security measure against malware.
Does write protection work the same way on Mac and Windows?
The basic concept is the same, but the steps to remove it are different because the operating systems have different interfaces. A drive that is write-protected on Windows will also be write-protected on a Mac, and removing it on one system will remove it on the other.
What if the physical switch is broken or stuck?
If the switch is physically damaged and stuck in the locked position, you cannot unlock it mechanically. Your only option is to use manufacturer software or command-line tools to remove the firmware-level protection. If those do not work, the drive may be permanently locked.