Export (0) Print
Expand All

Remove-SBMessageContainer

Updated: April 29, 2013

Remove-SBMessageContainer

You can use this cmdlet to remove a Service Bus for Windows Server message container.

Syntax

Parameter Set: Default
Remove-SBMessageContainer [-Id] <Int64> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]




Detailed Description

Run Remove-SBMessageContainer to remove a Service Bus for Windows Server message container. Removing a Service Bus for Windows Server message container deletes the reference to the message container database from the Service Bus for Windows Server farm configuration. However, it does not delete the database itself. Preserving the database supports a restore scenario at a later time.

Parameters

-Force

Specifies the force value.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Id<Int64>

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see  about_CommonParameters (http://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1

This will prompt for a container ID and then ask for confirmation before removing the Service Bus for Windows Server message container.


PS C:\> Remove-SBMessageContainer

Example 2

Removes the Service Bus for Windows Server message container 2 without prompting for the confirmation.


PS C:\> Remove-SBMessageContainer –ID 2 -Force

Service Bus 1.0 MSDN Community Forum

Community Additions

ADD
Show:
© 2014 Microsoft