Cmdlets for Azure DevOps

Build 24.0.9060

Remove-AzureDevOps Cmdlet

Parameters   Output Objects  

Deletes Azure DevOps data.

Syntax

Remove-AzureDevOps [parameters]

Remarks

The Remove-AzureDevOps cmdlet allows you to use a syntax similar to SQL DELETE statements to delete Azure DevOps data.

$conn = Connect-AzureDevOps - AuthScheme="Basic" Organization="MyAzureDevOpsOrganization" Catalog="Project_dev" Schema="Project"
Remove-AzureDevOps -Connection $conn -Table "WorkItems" -Id "2"
The Where parameter can also be used to specify the primary key:
Remove-AzureDevOps -Connection $conn -Table "exTablePowershell;" -Where "Id = 2"
The primary key can also be passed to the cmdlet along the pipeline:
Select-AzureDevOps -Connection $conn -Table WorkItems -Where "Reason = 'Manual'" | Remove-AzureDevOps

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9060