Skip to content

Latest commit

History

History
116 lines (84 loc) · 3.07 KB

File metadata and controls

116 lines (84 loc) · 3.07 KB
external help filecore-help.xml
Module Namecore
online versionhttps://github.com/Azure-Devops-PowerShell-Module/core/blob/master/docs/Remove-AzDevOpsProject.md#remove-azdevopsproject
schema2.0.0

Remove-AzDevOpsProject

SYNOPSIS

Queues a project to be deleted

SYNTAX

Remove-AzDevOpsProject [-Project] <Object> [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

A function to easily remove a project from Azure Devops

EXAMPLES

Example 1

PS C:\>$Project=Get-AzDevOpsProject 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-AzDevOpsProject-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

-Confirm

Prompts you for confirmation before running the cmdlet.

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

-Project

This is a project as returned from Get-AzDevOpsProject

Type: ObjectParameter Sets: (All)Aliases:
Required: TruePosition: 0Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False

-WhatIf

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

Type: 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.Object

NOTES

RELATED LINKS

Connect-AzDevOpsOrganization

Get-AzDevOpsOperation

Get-AzDevOpsProject