You plug in your flash drive, select a file, press delete—and nothing happens. Or worse, macOS throws up an error: “The operation can’t be completed because the item is locked.” It’s frustrating, especially when you need that storage space cleared. This guide walks through why your Mac won’t let you delete files from a flash drive and how to fix it without losing your mind.
Why Can’t You Delete Files from a Flash Drive on Mac?
The most common culprit is file system incompatibility. Many flash drives use the FAT32 or exFAT format, which macOS supports for reading but can have issues with when it comes to certain file operations. If the drive was last used on a PC, leftover metadata (like macOS .DS_Store files) might be conflicting with permissions.
Another frequent issue is write protection. Some flash drives have a physical switch on the side that toggles read-only mode. Others can become logically locked due to corrupted directory structures or driver glitches.

Quick Fixes: Check the Physical Lock and Permissions
- Physical write-protection switch: Look for a tiny switch on the USB drive’s body. Slide it away from the “lock” icon.
- Finder permissions: Right-click the flash drive on your desktop or in Finder, choose “Get Info,” and under “Sharing & Permissions,” make sure your user account has “Read & Write” access.
Unlock Locked Files via Terminal
When Finder says a file is locked, Terminal can override that flag. Open Terminal (Applications → Utilities) and type:
sudo chflags nouchg /Volumes/[DRIVE_NAME]/path/to/file
Replace [DRIVE_NAME] with the name of your flash drive and /path/to/file with the actual path. Enter your admin password when prompted, then try deleting again.
Reconnect or Reformat the Drive
If the above doesn’t work, eject the drive, unplug it, wait ten seconds, and plug it back in. Sometimes macOS just needs a fresh mount point.

If issues persist, back up the data you need and reformat the drive:
- Launch Disk Utility (Applications → Utilities).
- Select your flash drive in the sidebar.
- Click “Erase.”
- Choose “exFAT” for cross-platform compatibility or “Mac OS Extended (Journaled)” for Mac-only use.
- Name the drive and click “Erase.”
Keep Your Flash Drive Healthy Going Forward
Always eject the drive properly by dragging it to Trash or clicking the eject icon in Finder. Avoid unplugging during file transfers. Periodically check Disk Utility’s “First Aid” to repair minor filesystem glitches before they become bigger headaches.