Can not delete smtp email setting

I am absolutely unable to follow you here sorry.
Are you perhabs talking about the “notificiation channel”?

If that’s the case please have a look at the documentation:
https://admin-docs.zammad.org/en/latest/channels/microsoft365/accounts.html

It’s also being asked several times in the last month already.