SanDisk Memory Card Write Protected – Can't Delete, Format, or Add Files

Hi everyone, I have a SanDisk microSD card that I’ve been using in my camera, phone, and GoPro. Suddenly, I can’t write anything to it anymore. This is really driving me crazy.
I can view and copy files from the card, but I can’t delete anything or format it—Windows says the disk is write-protected, so I can’t add new files or save anything. When I try to format it, the process either fails immediately or gets stuck. The card is visible in File Explorer and Disk Management, but all options are grayed out and unavailable. I’ve tried this on multiple computers and devices—the same problem occurs everywhere.

If all else fails, formatting is your last resort. This is a last resort; there are other options, such as using command-line tools. Check out these tips.

https://forums.sandisk.com/t/why-is-my-sandisk-card-write-protected-and-how-do-i-remove-it/247759

Perform a low-level format using the SD Card Association’s official SD Memory Card Formatter tool. If this fails, it indicates hardware damage, and you will need to replace the card.

This means your microSD card has entered a read-only failure mode. It’s not a Windows issue. The card’s internal controller locks writing when it detects damage or wear, which is why you can read files but can’t delete, format, or save anything on any device.

First, back up all your data immediately while it’s still accessible. If some files are missing or corrupted, you can try a tool like Stellar Photo Recovery.

Realistically, it’s not fixable. Once a card goes into this read-only state due to wear or internal errors, it’s basically done. No formatting tool or command will bring it back to normal use.

I’ve seen a few SD cards do this when they’re starting to fail. If you’ve already checked the physical lock switch and tried a different card reader, I’d back up any data you can still access right away. When a card becomes permanently write-protected, it’s often the controller putting it into a read-only mode to prevent further data loss.

Is your issue still not solved? If so, try these steps:

  1. Remove the SD card and observe the tiny plastic slider on the left edge. If the slider is on the side with the “Lock” sign (usually at the bottom), physical write protection is enabled. Simply push the slider up away from the “Lock” end and reinsert it into your computer to test.

  2. The system may have mistakenly set the card to read-only. You can clear the read-only status of the SD card using the Windows command line.
    Right-click the Windows Start icon and select “Command Prompt (Administrator)”.
    Type diskpart and press Enter.
    Type list disk and press Enter (identify your SD card’s drive letter by its capacity, e.g., Disk 1).
    Type select disk 1 and press Enter (replace the numbers with your actual SD card drive letter).
    Type attributes disk clear readonly and press Enter.

If you see a success message, type exit to exit.

  1. Try using the SD Card Formatter repair tool to force format the card. You will need to back up all your important files to your computer first.
    Read also: Got A Locked SD Card? How to Unlock It and Recover Data?