Boyfriend deletes all his social media so he doesn’t feel tempted

He says so he won’t talk to anymore girls after I caught him flirting he says it’ll fix the problem... I feel like why do you have to delete it so you won’t do it anymore I feel like we too grown to be doing that we been dating 3 years and a baby together. Am I wrong for feeling like I want leave? He’s done this multiple times just never deleted the app until now