Hi @Deen Uthman
Kindly note that since Exchange 2013 has reached end of support in 2023.4.11, if possible please consider upgrading to Exchange 2016 or 2019 for better support.
If the requirement is to simply disable mailbox for these users (not also delete their AD accounts), you can prepare a csv file with the format like:
Add the mailboxes' email addresses you would like to delete in the csv file, then run the following script in Exchange Management Shell:
import-csv C:\public\disable_mailbox.csv | foreach{Disable-Mailbox -identity $_.EmailAddress -Confirm:$false}
If you would like to also delete the AD accounts, modify the script to:
import-csv C:\public\disable_mailbox.csv | foreach{Remove-Mailbox -identity $_.EmailAddress -Confirm:$false}
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.