In general, the point is in the subject.

Son, 12 years old.
It was necessary to provide my son with a program for school. My wife didn’t succeed, so I left everything for the evening. There were problems with the installation. Cleared cache, deleted unused programs. In general, when searching for a problem, I tried to restore a little order on the smartphone. But he didn’t log into messengers.
As a result, I came across a hidden folder. Well, hidden, it was lying around inside inside inside the system ones.
Well, I went into this folder, and there were nudes of my wife (his mother) that I made and stored on the computer, which I thought that he could not access. Most of all photos.
And then I looked at the correspondence in the messenger. In one of the correspondences I found a conversation on the topic of photos, with a periodic promise of showing photos and a narration of the response from the interlocutor that the photos were awesome. There was also a discussion about how they wanted to fuck her...
In general, I reset everything to factory settings, having previously reset the usual photos of my son from an open folder and transferred the photo from the computer to a flash drive. True, there is no guarantee that he did not duplicate the photo of his wife.
In general, what's the point... Should I talk to my son about this topic? Condemn or support?
I'm not even sure if I did the right thing by deleting the photo from his phone...