Does "mail disabling" mean Disable-RemoteMailbox?
If it's convenient, please provide the article you referred to.
Do you just want to remove the online mailbox?
If so, we first need to remove the Exchange Online license for the mailbox. You can check this for more detail: Disable-RemoteMailbox Description.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.