| external help file | AzDevOps-help.xml |
|---|---|
| Module Name | AzDevOps |
| online version | https://github.com/Azure-Devops-PowerShell-Module/projects/blob/master/docs/Remove-AdoProject.md#remove-adoproject |
| schema | 2.0.0 |
Queues a project to be deleted
Remove-AdoProject [-Project] <Object> [[-ApiVersion] <String>] [-ProgressAction<ActionPreference>] [-WhatIf]
[-Confirm] [<CommonParameters>]A function to easily remove a project from Azure Devops
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-412bbcc3700dDeleting a project
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{{ Fill ProgressAction Description }}
Type: System.Management.Automation.ActionPreferenceParameter Sets: (All)Aliases: progaRequired: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: FalseThis is a project as returned from Get-AdoProject
Type: System.ObjectParameter Sets: (All)Aliases:
Required: TruePosition: 0Default value: NoneAccept pipeline input: FalseAccept wildcard characters: FalsePrompts 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: FalseShows 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: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.