You accidentally deleted an important file on your smartphone and Now you don’t know where he went? Or are you simply interested in how the data storage system on Androidworks? Unlike computers, where files first go to the Recycle Bin, on mobile devices the deletion mechanism often seems mysterious. In fact, deleted data does not disappear instantly - it goes through several stages, and in some cases it can be restored.
In this article we will look in detail at where do files go after deletion on Androidhow temporary storage works in different applications (gallery, file manager, instant messengers), and what happens to the data when formatting or resetting settings. You will also find out what tools will help you get back lost photos, documents or videos - and when recovery is no longer possible.
Spoiler: even if you emptied the "Trash" in Google Photos or deleted the file via ES Explorer, the chances of getting the data back remain - but they depend on the type of memory (internal or SD card), the time elapsed after deletion, and your further actions with the smartphone.
How deleting files on Android works: myths and reality
Many users mistakenly think that after pressing “Delete” immediately erases the file from the device. In fact, the process is much more complicated - and this gives a chance for recovery. Here's what actually happens:
- 📁 Logical deletion: The system simply marks the memory area as "free", but the data physically remains in place until new files overwrite it. This applies to both internal memory and SD cards.
- ⏳ Delayed erase: some applications (for example Google Photos or Samsung Gallery) send files to the “Trash” for 30–60 days before the final deletion.
- 🔄 Caching: photo thumbnails, document previews or video fragments can be saved in the application cache even after the original is deleted.
- 🛡️ Protected partitions: on devices with encryption (for example, Samsung Knox or File-Based Encryption in new versions of Android), data recovery without root access is almost impossible.
Important understand: The more actively you use your smartphone after deletion, the higher the risk that old files will be overwritten by new ones. For example, if you deleted a photo and then downloaded a movie or updated 10 applications, the chances of recovery drop sharply.
Where deleted files go in standard Android applications
Different applications handle deletion in their own way. For example, Google Photos and Xiaomi Gallery have a built-in recycle bin, but the standard Files from Google immediately erases data without intermediate storage. Let's consider the most popular cases:
| Application | Where the files go | Retention period | Recovery |
|---|---|---|---|
| Google Photos | Cart (Menu → Cart) |
60 days | Yes, through the cart or Google Drive |
| Samsung Gallery | Trash (Albums → Trash) |
15–30 days (configurable) | Yes, if you haven’t emptied the trash |
| Files (Google) | Deleted immediately (without recycle bin) | — | Only through third-party utilities |
Folder WhatsApp/Media (hidden) |
Files remain until you clear them manually | Yes, if not deleted from the folder | |
| Telegram | Application cache (Settings → Data and memory) |
Before clearing the cache | Partially (thumbnails, previews) |
Messengers stand apart: for example, in WhatsApp photos and videos deleted from the chat remain in the folder /WhatsApp/Media/ until you clear it manually through the file manager. And in Telegram media files are stored in an encrypted cache, and there is no need to restore them. root access is unlikely.
⚠️ Attention: On devices with Android 10+ and function Scoped Storage access to folders of other applications is limited. This means that even file managers (for example, Solid Explorer) will not see the cache Telegram or Viber without special permissions.
Temporary storage: where to look for deleted files before the final one erasing
If the file has not yet been overwritten, it can be found in one of the “intermediate” storages. Here's where to look:
- 🗑️ App Trash: As mentioned above, Google Photos, Samsung Gallery, Mi Gallery others have their own baskets. Path: open the application → menu → “Trash” or “Recently Deleted”.
- 📂 Folder
.Trashor.Recycle: some file managers (for example, FX File Explorer) create hidden folders for temporary storage. To see them, turn on the display of hidden files in the Explorer settings. - 🔍 Application cache: photo thumbnails, document previews or video fragments can remain in the cache. Path:
Settings → Applications → [Application name] → Storage → Cache. Clearing the cache will delete them forever! - ☁️ Cloud backups: if automatic backup is enabled on the device (for example, Google One or Samsung Cloud), files could be saved in the cloud even after local deletion.
On devices Samsung with a proprietary shell One UI there is an additional function — Secure Folder. If the file was deleted from there, it can be restored within Settings → Biometrics and security → Secure Folder → Trash within 15 days.
Disable mobile data and Wi-Fi (so that new data is not downloaded)
Do not install new applications
Check the recycle bin in applications (Google Photos, Gallery)
Connect your smartphone to the PC and scan with specialized utilities (DiskDigger, EaseUS)
-->
Is it possible to restore files after emptying the recycle bin or formatting
If the file was deleted from the recycle bin or the device is formatted, the chances of recovery depend on several factors:
- Memory type:
- 📱 Internal memory (eMMC/UFS): recovery is possible, but requires root access and specialized tools (Dr.Fone, Tenorshare UltData). Without root, the chances are minimal.
- 💾 SD card: easier to restore, since there is no hardware encryption. Utilities like Recuva (on a PC) or DiskDigger (on Android) are suitable.
- 📷 Photo/video: restored best (especially in formats
.jpg,.png,.mp4). - 📄 Documents:
.pdf,.docxpartially restored (may be damaged formatting). - 🎵 Audio: files
.mp3or.m4aare often restored with distortions. - Open the application from which you deleted the file (for example, Google Photos).
- Go to the menu (three dots or three lines) → “Trash” or “Recently Deleted.”
- Select the desired file and click “Recover.”
- Install a file manager with root support (if you have rights superuser) or Solid Explorer.
- Enable the display of hidden files in the settings.
- Go to the folders:
/storage/emulated/0/.Trash(general trash)/data/data/[package_name]/cache(application cache, requires root)
Critical moment: if you formatted the SD card as internal memory (Adoptable Storage function in Android 6–9), the data is encrypted and becomes unavailable for recovery without the original device.
What to do if the file is overwritten?
If new data has taken the place of the deleted file, recovery is impossible. However, sometimes it is possible to extract fragments (for example, part of the text from a document or a photo thumbnail). “deep scanning” modes in apps like EaseUS Mobisafe or 7-Data RecoveryPlease note that this process may take several hours.
Step-by-step guide: how to recover deleted files on Android
If the file has not yet been overwritten, follow this algorithm. Important: do not connect your smartphone to the Internet and do not install new applications until the procedure is completed!
Method 1: Restore through the app recycle bin
The simplest method is to check the built-in recycle bin:
Method 2: Using file managers with hidden folders
Some explorers (for example, FX File Explorer or Root Explorer) show hidden system folders:
Method 3: Recovery apps (without root)
For internal memory without root access, the following are suitable:
- DiskDigger (the free version searches for photos and videos).
- Dumpster (works as a recycle bin for all files, but must be installed to delete).
- EaseUS Mobisafe (paid, but supports document recovery).
Instructions for DiskDigger:
- Download the application from Google Play.
- Select the scan type: “Basic” (fast, for photos) or “Full” (deep, for all file types).
- Wait until the scanning is completed and save the found files to SD card or to the cloud.
⚠️ Attention: Do not save recovered files back to the device's internal memory - this may overwrite the remaining data! Use SD card or the cloud.
Method 4: Recovery via PC (for experienced users)
If the smartphone has root access or the file was stored on SD card, connect the device to the computer and use:
- Recuva (free, for SD cards).
- TestDisk (for experienced ones, works with partitions).
- R-Studio (paid, supports encrypted partitions).
Important: when connecting to a PC, select the mode Transfer files (MTP), and not Transfer photos (PTP) - this way apps will see more data.
If you are restoring photos, try sorting the results by date creation. Often the last deleted files are at the end of the list.
What to do if files are deleted forever: prevention for the future
If recovery is impossible, do not despair - in the future you can avoid losses by following these tips:
- ☁️ Automatic backup:
- Set Google Photos to upload all media files to the cloud (
Settings → Backup and synchronization). - Use Google One to back up contacts, messages and applications.
- On devices Samsung turn on Samsung Cloud (
Settings → Accounts and backup).
- Set Google Photos to upload all media files to the cloud (
- 🔄 Local backups:
- Regularly copy important files to SD card or an external drive.
- Use applications like Swift Backup (requires root) to create system snapshots.
- 🛡️ Protection against accidental deletion:
- Install Dumpster —this application works as a global recycle bin for all files.
- In Google Photos Increase the shelf life in the recycle bin to a maximum of 60 days.
For critical data (such as work documents), use 3-2-1 rule:
- 3 copies of data (original + 2 backup).
- 2 different types of media (for example, SD card + cloud).
- 1 copy outside the home (cloud or external drive elsewhere).
⚠️ Attention: On devices With Android 11+ and function Scoped Storage access to folders of other applications is limited. This means that even backups via Titanium Backup or Swift Backup may not work without root access. Check the permission settings for backup applications!
Frequent errors when restoring files and how to avoid them
Many users aggravate the situation by trying to recover data using the wrong methods. Here's what you can't do:
- 🔄 Reboot the device immediately after deleting - this can launch processes that will overwrite the free space.
- 📱 Install recovery apps on the same drivewhere the deleted files were stored. This is almost guaranteed to destroy them.
- 🔧 Try to get root access after deletion —the rooting process often formats the partition
/datawhere file fragments could remain. - ☁️ Synchronize accounts (Google, Samsung) after data loss, this can overwrite backups in the cloud.
- 🗑️ Clear cache or application data Hoping to "free up space" - this will remove temporary files that could help with recovery.
Also avoid using dubious apps from unknown sources. Some “recoveries” are actually malware that encrypts your data for later blackmail.
If the file was deleted a long time ago (more than a month ago) and you actively used your smartphone, the chances of recovery are close to zero. In this case, focus on preventing losses in the future.
FAQ: Answers to frequently asked questions about deleted files on Android
Can files be recovered after a hard reset?
After a hard reset (Wipe Data/Factory Reset) Data on internal memory is almost always lost forever. Exceptions:
- If it was turned on OEM Unlock and you made a backup via TWRP.
- If the files were stored on SD card (it can be scanned on a PC).
- If the device was connected to Google Account with backup enabled (part of the data will be restored after re-authorization).
On new smartphones with File-Based Encryption (FBE) even professional tools it seems Cellebrite they do not always cope with recovery after a reset.
Why are some files restored damaged?
This happens due to data fragmentation. When a file is deleted, parts of it may remain in different sectors of memory. When restoring, the app “collects” fragments, but if some of them have already been overwritten, the resulting file will be broken. Most often this concerns:
- Videos (
.mp4,.mov) - can be played with artifacts or cut off. - Databases (
.db,.sqlite) - for example, message history in WhatsApp. - Archives (
.zip,.rar) - often recovered without part of the files.
To minimize damage, use the “deep scan” mode and save the results to another medium.
Is it possible to recover deleted messages in WhatsApp or Telegram?
Q WhatsApp:
- If you have a backup in Google Drive (configured in
Settings → Chat → Backup), reinstall the application and restore chats on the first launch. - If there is no copy, try scanning the folder
/sdcard/WhatsApp/Databasesfor the presence of filesmsgstore.db.crypt14(decryption will be required).
B Telegram:
- Deleted messages from cloud chats cannot be restored - they are synchronized with servers.
- For secret chats check the folder
/Telegram/Telegram Images- sometimes media files remain there even after being deleted from the correspondence.
Is it true that after deletion, files can be restored even after a year?
Theoretically, yes, but in practice this is unlikely. Here's why:
- On internal memory (eMMC/UFS) data is overwritten very quickly due to fragmentation and Android background processes.
- On SD cards the chances are higher, but only if the card was not actively used.
- Modern versions of Android (10+) encrypt user data, which makes recovery without an encryption key impossible.
Record cases of recovery of one-year-old files are usually associated with:
- Devices that were lying around turned off (for example, old smartphones with Android 5–7).
- SD cards that were not used after removal.
- Specialized equipment (for example, Chip-Off analysis in laboratories).
How to protect files from accidental deletion on Android?
In addition to backups, use these methods:
- Folder protection: in Samsung Gallery or Files by Google You can lock folders with a password.
- Hidden files: add a dot in front of the folder name (for example,
.SecretPhotos) - it will become invisible to most explorers. - Safe applications: KeepSafe, Vaulty or Secure Folder (on Samsung) hide files behind a PIN code.
- Deletion notifications: in Google Photos enable notifications about emptying the recycle bin (
Settings → Notifications).
For critical files (for example, scans of documents) use encrypted containers like Cryptomator or VeraCrypt.