1

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

mavera
  • 111
  • 1
  • 1
  • 2

2 Answers2

2

This powershell command will do it.

Get-ExchangeServer | ?{$_.IsHubTransportServer -eq $true} | Get-Queue | 
get-message | Remove-Message -withNDR $false
Sam Cogan
  • 38,736
  • 6
  • 78
  • 114
1

You can also open the queue in Exchange Management Console, go to the Toolbox and open the Queue Viewer. Once there, select all messages and click on the Remove option of your choice on the right. (With, or without NDR)

DanBig
  • 11,423
  • 1
  • 29
  • 53