Purge Queue
Microsoft.MSMQ.6.3.Task.PurgeQueue (Task)
Removes all messages in the Queue.
Element properties:
Member Modules:
Source Code:
<Task ID="Microsoft.MSMQ.6.3.Task.PurgeQueue" Accessibility="Internal" Enabled="true" Target="Microsoft.MSMQ.6.3.Queues" Timeout="300" Remotable="true">
<Category>Maintenance</Category>
<WriteAction ID="WA" TypeID="Microsoft.MSMQ.6.3.PurgeQueue">
<Computer>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</Computer>
<QueuePath>$Target/Property[Type="Microsoft.MSMQ.6.3.Queue"]/PathName$</QueuePath>
<TimeoutSeconds>300</TimeoutSeconds>
</WriteAction>
</Task>