Windows does not physically move photos, videos, and audio out of the user or public folders into “Gallery” or the Photos app. The Photos/Photos Legacy apps and the Pictures library only index and display media from folders that are included as sources. To stop seeing items there and avoid deleting real files, remove those folders from the app’s/library’s sources instead of deleting the media.
To keep using only your user and public folders while “turning off” the gallery view:
- Open the Photos (or Photos Legacy) app.
- Go to its Settings (for Photos Legacy: Settings → Sources).
- Remove any folders you do not want the app to index. Removing a folder from Photos/Photos Legacy does not delete the folder or its contents from the PC; it only stops showing them in the app.
- After that, do not delete photos from inside the Photos/Photos Legacy app if you want to keep them on disk, because delete operations there send the actual files to the Recycle Bin (and, for OneDrive/iCloud folders, to their online recycle bins as well).
If the concern is File Explorer “Pictures” or other media libraries:
- Use a UWP app (or built-in Photos) to manage which folders are part of the Pictures/Music/Videos libraries.
- When a folder is removed from a library via
StorageLibrary.RequestRemoveFolderAsync, the folder remains in its original location on disk and is simply no longer included in the library or Photos.
This way, all photos remain in the user and public folders, but they no longer appear in the gallery/library views, and deleting from the gallery is not needed.
References: