Android's Gallery app gives you a quick access to the photos and videos stored on your device. Furthermore, it will periodically scan your device's storage for new media files. But if you would like to stop a photo or video folder from showing up in your gallery, you may do so in a few simple steps.
How To Remove a Folder from Android's Media Scan
This guide will teach you how to prevent media folders from being scanned by the Gallery app (or any other apps). This can be done by creating a filed named .nomedia in desired media folder.
The .nomedia file is a blank text file (.txt). When placed in a folder, it will instruct apps to skip the folder when scanning for media files. It offers a simple solution to prevent documents, music, photos, and videos from showing up in your apps.
You can create the .nomedia file on a computer (with Notepad) and then copy/paste it into the desired folder(s) on your smartphone or use a free app like Free File Manager to create the file directly in the target folder.
How To Hide a Media Folder with Free File Manager
Free File Manager is a free and ads-free app for managing files and apps (.apk) on Android.
Open the Google PlayStore and make a search for Free File Manager. Tap on the Install button to download the app to your device.
Open the Free File Manager app and browse for the desired media folder. Next, click on the + button and select New Text File to create a text file in the selected folder. Rename the file as .nomedia and tap on Create:
Once done, close the File Manager and reboot your device to apply your new settings.