Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question

This powershell command will do it.

Get-ExchangeServer | ?{$_.IsHubTransportServer -eq $true} | Get-Queue | 
get-message | Remove-Message -withNDR $false
share|improve this answer

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)

share|improve this answer
In Exchange 2010, When I select all messages, the NDR/NoNDR option is removed – jao Jan 30 '15 at 13:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.