Removes an MSMQ queue.
Uninstall-MsmqMessageQueue [-Name] <String> [-Private] [-WhatIf] [-Confirm] [<CommonParameters>]
Removes/deletes an existing MSMQ queue by name. If a queue with that name doesn't exist, nothing happens.
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
Name | String | The name of the queue to remove. |
true | false | |
Private | SwitchParameter | Is this a private queue? |
false | false | False |
WhatIf | SwitchParameter | false | false | ||
Confirm | SwitchParameter | false | false | ||
CommonParameters | This cmdlet supports common parameters. For more information type Get-Help about_CommonParameters . |
Uninstall-MsmqMessageQueue -Name MovieQueue
Removes the public MovieQueue
queue.
Uninstall-MsmqMessageQueue -Name MovieCriticsQueue -Private
Removes the private MovieCriticsQueue
queue.