Skip to content

Latest commit

History

History
159 lines (111 loc) · 3.7 KB

File metadata and controls

159 lines (111 loc) · 3.7 KB
external help fileAzDevOps-help.xml
Module NameAzDevOps
online versionhttps://github.com/Azure-Devops-PowerShell-Module/projects/blob/master/docs/Remove-AdoProject.md#remove-adoproject
schema2.0.0

Remove-AdoProject

SYNOPSIS

Queues a project to be deleted

SYNTAX

Remove-AdoProject [-Project] <Object> [[-ApiVersion] <String>] [-ProgressAction<ActionPreference>] [-WhatIf]
[-Confirm] [<CommonParameters>]

DESCRIPTION

A function to easily remove a project from Azure Devops

EXAMPLES

Example 1

PS C:\>$Project=Get-AdoProject 4027d479-6afb-4201-9646-c580bf8d7251
$Project
id : 4027d479-6afb-4201-9646-c580bf8d7251
name : newproject
description : this is a new project
url : https://dev.azure.com/patton-tech/_apis/projects/4027d479-6afb-4201-9646-c580bf8d7251
state : wellFormed
revision : 515330653
_links : @{self=; collection=; web=}
visibility : private
defaultTeam : @{id=25008b15-01a6-4b27-a9f9-5872e2713b87; name=newproject Team; url=https://dev.azure.com/patton-tech/_apis/projects/4027d479-6afb-4201-9646-c580bf8d7251/teams/25008b15-01a6-4b27-a9f9-5872e2713b87}
lastUpdateTime : 2020-04-08T19:28:13.077Z
Remove-AdoProject-Project $Project
id status url
-----------
1569ba20-7ed2-4ff0-8c1f-412bbcc3700d notSet https://dev.azure.com/patton-tech/_apis/operations/1569ba20-7ed2-4ff0-8c1f-412bbcc3700d

Deleting a project

PARAMETERS

-ApiVersion

A valid API Version for this endpoint

Type: System.StringParameter Sets: (All)Aliases:
Accepted values: 5.1, 7.1-preview.4, 7.2-preview.4Required: FalsePosition: 1Default 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

This is a project as returned from Get-AdoProject

Type: System.ObjectParameter Sets: (All)Aliases:
Required: TruePosition: 0Default 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

None

OUTPUTS

System.String

NOTES

RELATED LINKS

Connect-AdoOrganization

Get-AdoOperation

Get-AdoProject