Stuck with the removal of an inactive mailbox even though it doesn’t have in place Hold or Litigation Hold enabled? I faced similar issues at one of my customers where I was trying to remove an In-Active mailbox.
Firstly I checked if it has any holds in place.
Get-Mailbox [email protected]|fl compl*,delay*,inplace*,litig*
But when I was trying to force remove (works all the time) using the below command I was hit by an error stating I have Organization Policies applied which was the culprit.
Get-Mailbox [email protected] -InactiveMailboxOnly |Remove-Mailbox -PermanentlyDelete -Force
To exclude the mailbox from all organization policies I had to run the below command and the mailbox got immediately removed
Set-Mailbox [email protected] -ExcludeFromOrgHolds -InactiveMailbox