How to Delete All Message From Queue In Exchange Server 2007

exchangeexchange-2007queue

I want to delete all message from Queue. How can I do it with Exchange Server 2007

Best Answer

This powershell command will do it.

Get-ExchangeServer | ?{$_.IsHubTransportServer -eq $true} | Get-Queue | 
get-message | Remove-Message -withNDR $false
Related Topic