CmdID / PowerShell / Cmdlets / Remove
Remove-DatabaseAvailabilityGroupServer
Use the Remove-DatabaseAvailabilityGroupServer cmdlet to remove a Mailbox server from a database availability group (DAG). Exchange PowerShell reference
From the Exchange PowerShell reference 7 parameters Its page in the reference
Parameters
-IdentityThe Identity parameter specifies the name of the DAG from which you're removing the server.-MailboxServerThe MailboxServer parameter specifies the Mailbox server to remove from the DAG.-ConfigurationOnlyThe ConfigurationOnly switch remove the Mailbox server from the DAG object in Active Directory.-Confirm, -cfThe Confirm switch specifies whether to show or hide the confirmation prompt.-DomainControllerThe DomainController parameter specifies the domain controller that's used by this cmdlet to read data from or write data to Active Directory.-SkipDagValidationThe SkipDagValidation switch specifies whether to bypass the validation of the DAG's quorum model and the health check on the DAG's witness when removing members from the DAG.-WhatIf, -wiThe WhatIf switch shows what the command does without making any changes.