Uninstall-MsmqMessageQueue

Removes an MSMQ queue.

Syntax

Uninstall-MsmqMessageQueue [-Name] <String> [-Private] [-WhatIf] [-Confirm] [<CommonParameters>]

Description

Removes/deletes an existing MSMQ queue by name. If a queue with that name doesn't exist, nothing happens.

Parameters

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.

EXAMPLE 1

Uninstall-MsmqMessageQueue -Name MovieQueue

Removes the public MovieQueue queue.

EXAMPLE 2

Uninstall-MsmqMessageQueue -Name MovieCriticsQueue -Private

Removes the private MovieCriticsQueue queue.