CmdID / PowerShell / Cmdlets / Clear
Clear-MsmqQueue
Clears queues. Windows Server PowerShell reference
From the Windows Server PowerShell reference 3 parameters Its page in the reference
Parameters
-Confirm, -cfPrompts you for confirmation before running the cmdlet.-InputObjectSpecifies an array of MessageQueue objects.-WhatIf, -wiShows what would happen if the cmdlet runs.