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