Skip to content

Latest commit

History

History
178 lines (125 loc) · 3.27 KB

File metadata and controls

178 lines (125 loc) · 3.27 KB
external help fileAzDevOps-help.xml
Module NameAzDevOps
online versionhttps://github.com/Azure-Devops-PowerShell-Module/build/blob/master/docs/Remove-AzDevOpsBuild.md#remove-azdevopsbuild
schema2.0.0

Remove-AdoBuild

SYNOPSIS

Deletes a build

SYNTAX

Project

Remove-AdoBuild [-Project<Object>] -BuildId <Int32> [-ApiVersion<String>]
[-ProgressAction<ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]

ProjectId

Remove-AdoBuild [-ProjectId<Guid>] -BuildId <Int32> [-ApiVersion<String>]
[-ProgressAction<ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Deletes a build

EXAMPLES

Example 1

PS C:\>Remove-AdoBuild-Project $Project-BuildId 192
Build : 192 was deleted on Friday, January 13,20232:33:02 PM by Jeffrey Patton

Remove a build

PARAMETERS

-ApiVersion

A valid API Version for this endpoint

Type: System.StringParameter Sets: (All)Aliases:
Accepted values: 5.1, 7.1-preview.7, 7.2-preview.2Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False

-BuildId

Build ID to remove

Type: System.Int32Parameter Sets: (All)Aliases:
Required: TruePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False

-ProgressAction

{{ Fill ProgressAction Description }}

Type: System.Management.Automation.ActionPreferenceParameter Sets: (All)Aliases: progaRequired: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False

-Project

Project

Type: System.ObjectParameter Sets: ProjectAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: True (ByValue)Accept wildcard characters: False

-ProjectId

Project ID

Type: System.GuidParameter Sets: ProjectIdAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: System.Management.Automation.SwitchParameterParameter Sets: (All)Aliases: cfRequired: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False

-WhatIf

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

Type: System.Management.Automation.SwitchParameterParameter Sets: (All)Aliases: wiRequired: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept 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

System.Object

OUTPUTS

System.String

NOTES

RELATED LINKS

https://github.com/Azure-Devops-PowerShell-Module/build/blob/master/docs/Remove-AzDevOpsBuild.md#remove-azdevopsbuild