Why Files Won't Delete on Android
You tap delete, and nothing happens. Or you get an error: "Operation not permitted," "Cannot delete file," or "Delete failed." This is one of the most frustrating Android experiences — you can see the file, but you can't remove it.
The good news: there's always a reason, and AnExplorer can solve almost every case. Here are the causes, from most common to least:
Fix 1: Grant "All Files Access" Permission (Most Common)
The problem: Android 11+ introduced Scoped Storage, which restricts what file managers can access. If your file manager doesn't have "All files access," it can only delete files it created or files in specific folders.
The fix:
- Settings → Apps → AnExplorer (or your file manager)
- Permissions → Storage
- Select "Allow management of all files"
This single step fixes 70% of "can't delete" problems. Without this permission, the file manager literally doesn't have the system-level authority to delete files in most locations.
Why this happens: Google added this restriction in Android 11 to prevent rogue apps from deleting your data. But it also blocks legitimate file managers unless you explicitly grant the permission.
Fix 2: Close the App Using the File
The problem: A file that's currently open or in use by another app can't be deleted. Android locks it to prevent data corruption.
Symptoms:
- "File is in use" error
- Delete appears to succeed but file reappears
- "Operation not permitted" on media files
The fix:
- Identify which app is using the file (check the folder name — e.g., files in
com.whatsappare used by WhatsApp) - Close that app completely (swipe away from recent apps)
- If still locked: Settings → Apps → app name → Force stop
- Try deleting again in AnExplorer
Common culprits: Media players (lock video/audio files), gallery apps (lock photos), download managers (lock partially downloaded files), cloud sync apps (lock syncing files).
Fix 3: SD Card Write Permission
The problem: Android 11+ requires explicit permission to write to SD cards. Even with "All files access," the SD card needs a separate SAF (Storage Access Framework) grant.
The fix:
- Open AnExplorer → navigate to your SD card
- Android shows a dialog: "Allow AnExplorer to access SD card name?"
- Tap "Use this folder" → Allow
- Now you can delete, move, and rename files on the SD card
Also check: Some SD cards have a physical write-protect switch (a tiny slider on the side). If it's in the "lock" position, no app can write to or delete from the card. Slide it to the unlocked position.
SD card corruption: If the card is corrupted, files may appear undeletable. Try: Settings → Storage → SD card → Format (warning: erases all data).
Fix 4: Android/data and Android/obb Folders
The problem: Android 12+ completely blocks access to Android/data/ and Android/obb/ for all apps. Even with "All files access," these folders are restricted.
The fix (AnExplorer's approach):
- Open AnExplorer → navigate to Internal Storage → Android → data
- A system dialog appears: "Allow AnExplorer to access this folder?"
- Tap "Use this folder" → Allow
- Full read/write/delete access granted via SAF
This is a one-time permission. Once granted, you can delete any file in Android/data/ through AnExplorer.
Why these folders are protected: They contain app-private data (game saves, app databases, cached content). Google restricted access to prevent apps from reading each other's private data. But you, as the device owner, can still grant access manually.
Fix 5: System Files (Root Required)
The problem: Files in /system/, /data/data/, and other system partitions are protected by Linux file permissions. No amount of Android permissions will let you delete them without root.
The fix:
- Root your device (Magisk is the standard method)
- Open AnExplorer Pro → enable Root mode in settings
- Navigate to the system file → delete
Warning: Deleting system files can brick your device. Only delete files you're certain are safe to remove (bloatware APKs, leftover system app data).
Fix 6: Files That Keep Coming Back
The problem: You delete a file, but it reappears minutes or hours later. Something is recreating it.
Common causes:
- Ad SDKs: Some apps create tracking/cache files that regenerate
- Cloud sync: A cloud app re-downloads the file from the server
- System processes: Android recreates certain cache directories automatically
The fix:
- Note the file path and name
- Identify which app creates it (the parent folder usually contains the app's package name)
- Either uninstall that app, or clear its data: Settings → Apps → app → Storage → Clear data
- For cloud sync: disable sync for that folder in the cloud app's settings
Fix 7: "Read-Only File System" Error
The problem: The storage is mounted as read-only. This happens with:
- Corrupted internal storage
- USB drives with NTFS file system (read-only on Android without root)
- System partitions
The fix:
- NTFS USB drives: Android can read NTFS but not write to it. Format the drive as exFAT (compatible with both Android and Windows/Mac) or use a root-enabled NTFS driver.
- Corrupted storage: Restart the phone. If persistent, back up data and factory reset.
- System partitions: Require root access (see Fix 5).
Prevention Tips
- Always grant "All files access" to your file manager immediately after installation
- Grant SD card SAF permission the first time you access the card
- Close media apps before trying to delete their files
- Don't delete files in /system unless you know exactly what you're doing
- Use AnExplorer's Trash Bin — deleted files go to trash first, recoverable for 30 days
Related Guides
- Android Storage Full — free up space when storage is full
- SD Card Not Showing — fix SD card detection issues
- Access Hidden Files — find and manage hidden files
- Move Files to SD Card — offload files to external storage
