CmdID / PowerShell / Cmdlets / Remove
Remove-Message
Use the Remove-Message cmdlet to delete a message from a queue on a Mailbox server or an Edge Transport server. Exchange PowerShell reference
From the Exchange PowerShell reference 6 parameters Its page in the reference
Parameters
-IdentityThe Identity parameter specifies the message.-FilterThe Filter parameter specifies one or more messages by using OPATH filter syntax.-Confirm, -cfThe Confirm switch specifies whether to show or hide the confirmation prompt.-ServerThe Server parameter specifies the Exchange server where you want to run this command.-WhatIf, -wiThe WhatIf switch shows what the command does without making any changes.-WithNDRThe WithNDR parameter specifies whether a non-delivery report (NDR) is returned to the sender of a message.