Remove User Email address if SSO email is null

Hello, I use SSO to log in my users. In my website, users can delete e-mail from account.
Is it possible to DELETE a user’s email from the apì so whenever a user deletes his email on my web, discourse email gets deleted too?
I need the user to not to be able to login into forum after that, dsable discourse emails to that address and remove it from user’s profile.

I have already tried the PUT method on update email but it doesnt allow null values, only email strings.
When sending a null value User cannot login but the email is still present on profile and discourse keeps sending emails

UPDATE: I tried changing the email to a invalid domain to disable outgoing emails but I still need the user not to be able to log in in the forum