How to completely remove a photo from Viber in the gallery Xiaomi Redmi: hiding, cleaning cache and radical methods

Photos from Viber automatically enter the Xiaomi Redmi gallery, filling memory and creating chaos among personal photos. Even after deleting the chat or media files in the messenger itself, images often remain in the system folders. The problem is compounded by the fact that MIUI aggressively scans all directories for media, including hidden application folders. In this article, 5 proven ways to get rid of unnecessary photos, from simple concealment to complete removal from the device.

Many users mistakenly believe that it is enough to clear the Viber cache or delete files through the file manager. However, Xiaomi uses its own media indexing system (MediaProvider), which can โ€œrestoreโ€ deleted images on the next scan. We will analyze not only standard methods, but also little-known tricks โ€“ for example, how to disable automatic saving in the settings of the messenger or block the gallery from accessing Viber folders via.nomedia.

We will pay special attention to the Redmi models. MIUI 13/14, So the logic of the gallery has changed, and now the system ignores some.nomedia files if they're not created correctly. And we'll also look at a radical way of resetting the gallery settings, which helps you to create a new file. 90% cases where other methods do not work.

The reason is because of the Android architecture and the MIUI features, and when you receive or send an image to Viber, it's stored in one of three folders:

  • ๐Ÿ“ /storage/emulated/0/Android/media/com.viber.voip/ โ€” media storage
  • ๐Ÿ“ /storage/emulated/0/Android/data/com.viber.voip/files/ โ€” cache and temporary files
  • ๐Ÿ“ /storage/emulated/0/Viber/Media/ โ€” Outdated location (for versions up to) 2021 year-end)

Xiaomi Gallery (com.miui.gallery) scans all of these directories, as they are not protected by the noindex flag. Moreover, even if you delete a photo directly in Viber, files can remain in folders for up to 30 days - this is due to the mechanism of "soft removal" of the messenger.

Key point: Starting with MIUI 12.5, the system ignores.nomedia files in application root folders (e.g., /Android/media/).This means that the standard method of hiding media stopped working for Redmi Note 11, Redmi 10 and later.

Another trap is cloud backup, and if you have Viber synced with Google Photos or Mi Cloud enabled, deleted locally can be returned the next time you restore data.

๐Ÿ“Š How often do you clean the gallery of photos from messengers?
Once a week.
Once a month
Only when memory ends
Never clean.

Method 1: Hiding a photo via a.nomedia file (works on MIUI up to 12.5)

This method is suitable for devices on MIUI 12 and older (e.g. Redmi 9, Redmi Note 9 Pro) and the idea is to create a special file in the folder with a photo that will prevent the gallery from scanning its contents.

Step-by-step:

  1. Open any file manager (e.g., Mi File Manager or Total Commander).
  2. Go to the folder with Viber photo: /storage/emulated/0/Android/media/com.viber.voip/Viber/Media/
  3. Create a new text file in this folder and call it.nomedia (a point at the beginning is mandatory!).
  4. Restart the device or force the gallery to stop: Settings โ†’ Applications โ†’ Application Management โ†’ Gallery โ†’ Stop

Important: On MIUI 13+, this method only works for folders outside /Android/media/. For newer versions, use Method 3 or 4.

Enable the display of hidden files in the manager

Check the access rights to the Viber folder

Make sure the file is saved without extension (.txt)

Reboot your phone after creating a file-->

Method 2: Clearing Viber cache and data

If photos remain in the gallery even after they are deleted in the chat, the problem may be in the messenger cache. Clearing the cache will delete all temporary files, but will not affect the chats and media stored in the deviceโ€™s memory.

How to clear the cache:

  • ๐Ÿ“ฑ Go to Settings. โ†’ Annexes โ†’ Application management.
  • ๐Ÿ” Find Viber in the list and select it.
  • ๐Ÿงน Click Clear Cache (not to be confused with Clear Data โ€“ this will delete all chats!).
  • ๐Ÿ”„ Restart your phone and check the gallery.

If the cache is more than 500MB, it is also recommended to clean the /Android/data/com.viber.voip/cache/ folder manually through the file manager.

Radical: Cleaning the app data (remove all chats and settings!) Use only if other methods have not helped:

Settings โ†’ Applications โ†’ Viber โ†’ Storage โ†’ Clear data

๐Ÿ’ก

Before clearing your data, export important chats to Viber: Settings โ†’ Account โ†’ Backup.

Method 3: Disabling auto-save photos in Viber

The easiest way to prevent photos from getting into the gallery is to prevent them from automatically saving them in the messenger settings, which will not delete files already saved, but will stop new ones from appearing.

Instructions:

  • ๐Ÿ“ฒ Open Viber and go to More (โ‹ฎ) โ†’ Settings.
  • ๐Ÿ–ผ๏ธ Select Media and Files โ†’ Preservation of media.
  • โŒ Turn off the options: ๐Ÿ“ท Save incoming photos ๐ŸŽฅ Save incoming videos ๐Ÿ“ค Keeping Outbound Media

After that, the new photos and videos will not be saved to the phoneโ€™s memory, but will remain available inside Viber chats.

โš ๏ธ Attention: On some firmware MIUI (For example, on Redmi Note 10 Pro with global version, the Save Media option may not be available.

Method 4: Delete photo via file manager (manual method)

If previous methods failed, you have to manually delete files, which requires care, because doing the wrong thing can cause you to lose data.

Step-by-step:

  1. ๐Ÿ“‚ Open Mi File Manager (or another root manager if you have one).
  2. ๐Ÿ” Go to the folders where Viber photos are stored: /storage/emulated/0/Android/media/com.viber.voip/Viber/Media/ /storage/emulated/0/Android/data/com.viber.voip/files/
  3. ๐Ÿ—‘๏ธ Delete unnecessary files (you can highlight everything and delete it, but be careful โ€“ there may be important media here too!).
  4. ๐Ÿ”„ Restart your phone and check the gallery.

If the photos don't disappear:

  • ๐Ÿ”„ Force the gallery to be renovated: open it and pull it down for an update.
  • ๐Ÿ“› Clear the gallery cache: Settings โ†’ Annexes โ†’ gallery โ†’ Clear the cache.
  • ๐Ÿ”ง Use an alternative gallery (such as Google Photos) to check if files are left on your device.

โš ๏ธ Note: Do not delete com.viber.voip folders completely - this can cause malfunctions in the messenger,.mp4).

What to do if the Viber folder is not displayed?
If you can't see the folder /Android/media/com.viber.voip/, Turn on the hidden and system files in the file manager settings. Mi File Manager does it this way: โ‹ฎ โ†’ Settings โ†’ Show hidden files. If the folder is still missing, Viber has not yet saved media to the device or is using cloud storage.

If none of these methods work, you have to reset the gallery settings, which will lead to a re-indexing of all media files on the device, often solving the problem of ghost photos from Viber.

How to drop a gallery:

  • ๐Ÿ“ฑ Go to Settings. โ†’ Annexes โ†’ Application management.
  • ๐Ÿ–ผ๏ธ Find the Gallery app (or Mi Gallery app).
  • ๐Ÿ”ง Press Warehouse. โ†’ Delete data (this wonโ€™t delete your photos, just reset the app settings!).
  • ๐Ÿ”„ Reboot the phone.

Once reset, the gallery will start to re-scan the device, which can take anywhere from 5 to 30 minutes depending on the amount of media, and don't interrupt the scan, wait until it's done.

Alternatively, if the reset didnโ€™t work, try disabling the MIUI gallery and using a third-party app (like Simple Gallery or Google Photos).

Settings โ†’ Applications โ†’ Gallery โ†’ Disable
MethodDifficultyEfficiencyIt's good for MIUI.Deleting files completely?
.nomediaโญ60%Up to 12.5.โŒ (only conceal)
Cleaning up Viber's cacheโญโญ70%Any versionโŒ (temporary files only)
Disconnecting auto-savingโญ100% (for new photos)Any versionโŒ (prevent)
Manual removalโญโญโญ90%Any versionโœ…
Gallery dumpingโญโญโญโญ80%Any versionโŒ (just re-indexing)

Additional tips: how to avoid reappearing photos

To prevent the problem from returning, follow these recommendations:

  • ๐Ÿ”„ Clean Viber cache regularly (once every 1-2 weeks).
  • ๐Ÿšซ Turn off autoload media in mobile data: Viber โ†’ Settings โ†’ Data and storage โ†’ Autoboot media
  • โ˜๏ธ Use cloud services (like Google Photos) to back up, but disable automatic download from Viber folders.
  • ๐Ÿ“ Transfer important photos from Viber to a separate folder (for example, /Pictures/Viber_Important/) and remove originals from chat rooms.

โš ๏ธ Note: If you use Mi Cloud to sync your gallery, locally deleted photos can stay in the cloud and return when you restore them. โ†’ Xiaomi account โ†’ Mi Cloud โ†’ gallery.

๐Ÿ’ก

The most reliable way is to switch off auto-save (Method 3) + Manual removal of old photos (Method 4).

FAQ: Frequent questions about removing photos from Viber in Xiaomi Redmi

โ“ Why do they stay in the gallery after removing photos in Viber?
This is because Viber does not delete files physically when cleaning the chat, but only marks them as "hidden." MIUI Gallery continues to display them until the files are erased from the device manually or through cache.Solution: Use Method 4 (manual deletion) or Method 2 (cache cleanup).
โ“ How to delete photos from Viber without removing them from chat?
If you want to leave your photos in a chat room but remove them from the gallery: Copy the photo to another folder (for example, copy the photo to another folder, /Pictures/Saved_from_Viber/). Remove the originals from Viber folders (see Method) 4). Turn off auto-save (see Method) 3).
โ“ Why.nomedia doesnโ€™t work on my Redmi Note 11?
Starting with MIUI 13, the system ignores.nomedia files in folders inside /Android/media/. This is done to be compatible with the new Android 11+ data storage rules. Alternative: Move the photo to another folder (e.g. /Pictures/) and create.nomedia there, or use Method 5 (Gallery Reset).
โ“ Can I recover accidentally deleted photos from Viber folders?
If your files were deleted recently (within 30 days), try: ๐Ÿ—‘๏ธ Check the basket in the gallery MIUI. ๐Ÿ” Use recovery applications (such as DiskDigger or Recuva for PC). โ˜๏ธ Check backups in Google Photos or Mi Cloud.Important: Don't save new files to your device until you recover - this reduces your chances of success.
โ“ How to stop the gallery from scanning Viber folders forever?
Nana MIUI There is no built-in feature to exclude folders from scanning, but you can: Use a third-party gallery (for example, Simple Gallery), where there are exception settings. Viber/Media into Viber/Media_old (This will stop saving new photos, but it can break the messenger. disable the storage permission for the Gallery app (but it will hide all photos on the device).