Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Remove-AzureBatchPool

Remove-AzureBatchPool

microsoft.azure.commands.batch.dll

Synopsis

Deletes the specified Azure Batch pool.

Syntax

Remove-AzureBatchPool [-Name] [-BatchContext] [-Force] [<CommonParameters>]

Detailed Description

Deletes the specified Azure Batch pool. You will be prompted for confirmation unless you use the Force parameter.

Parameters

-BatchContext <BatchAccountContext>

The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

true (ByValue)

Accept wildcard characters?

false

-Force <SwitchParameter>

If this parameter is not present, then you will be prompted for confirmation before the pool is deleted. Use this parameter to delete the pool without being asked for confirmation.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Name <string>

The name of the pool to delete. Wildcards are not permitted.

Aliases

None

Required?

true

Position

1

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

Input Type


Return Type


Notes

Examples

-------------------------- EXAMPLE 1 --------------------------

C:\PS>

Description

-----------

Deletes the pool named "myPool". The user is prompted for confirmation before the delete operation takes place.

        Remove-AzureBatchPool -Name "myPool" -BatchContext $context
      

-------------------------- EXAMPLE 2 --------------------------

C:\PS>

Description

-----------

Deletes all pools. Since the Force parameter is present, the confirmation prompt is suppressed.

        Get-AzureBatchPool -BatchContext $context | Remove-AzureBatchPool -Force -BatchContext $context