Skip to main content

Remove-VSTeamPool

SYNOPSIS

Removes the agent pool.

SYNTAX

Remove-VSTeamPool -Id <Int32> [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Removes the agent pool.

EXAMPLES

Example 1

Remove-VSTeamPool -Id 101

Removes the pool with ID `101`.

Example 2

$poolsToRemove = 101, 102, 103
$poolsToRemove | ForEach-Object { Remove-VSTeamPool -Id $_ }

Removes multiple pools with IDs `101`, `102`, and `103`.

Example 3

$poolsToRemove = 101, 102, 103
$poolsToRemove | Remove-VSTeamPool -Id $_

Another method to remove multiple pools with IDs `101`, `102`, and `103` using pipeline input.

PARAMETERS

-Id

Id of the pool to delete.

Type: Int32
Parameter Sets: (All)
Aliases: PoolID

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

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

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

Add-VSTeamPool

Update-VSTeamPool

Get-VSTeamPool