I have an application that make photos into a subdirectory called "DesPictures" in Environment.DIRECTORY_DCIM public directory
Another application scan the "DesPictures" directory and delete the photos one by one.
In Android 10 the code is:
dir = new File...