Azure DevOps Connector
Documentation
Version: 2
Documentation
Endpoint

Delete Team


Name

delete_team

Description

Deletes the specified team in the default project within the organization by its team Id. [API reference]

Related Tables

Teams

Parameters

Parameter Label Required Options Description
ApiVersion API Version YES
Option Value
7.0-preview 7.0-preview
7.1-preview.2 7.1-preview.2
Id Team Id YES The ID of the team to delete.

Output Columns

Label Data Type (SSIS) Data Type (SQL) Length Raw Description
Id DT_WSTR nvarchar(200) 200 False
Name DT_WSTR nvarchar(200) 200 False
ProjectId DT_WSTR nvarchar(200) 200 False
ProjectName DT_WSTR nvarchar(200) 200 False
Url DT_WSTR nvarchar(2048) 2048 False
Description DT_WSTR nvarchar(4000) 4000 False
IdentityUrl DT_WSTR nvarchar(2048) 2048 False
If the column you are looking for is missing, consider customizing Azure DevOps Connector.

Input Columns

Label Data Type (SSIS) Data Type (SQL) Length Raw Description
Id DT_WSTR nvarchar(200) 200 False The ID of the team to delete.
Required columns that you need to supply are bolded.

Examples

SSIS

Use Azure DevOps Connector in API Source component to read data or in API Destination component to read/write data:

Delete rows from Teams table using API Destination

This Endpoint belongs to Teams table, therefore you cannot work with it directly. Use this table and table-operation pair instead:

Azure DevOps
Teams
Delete
SSIS API Destination - Access table operation

ODBC application

Use these SQL queries in your ODBC application data source:

Delete team

SELECT * FROM delete_team
WHERE Id = 'abcd-1234-id'
WITH
(
    "ApiVersion" = '7.0-preview'
)

Delete the specified team by its Id

DELETE FROM Teams WHERE Id='8djr4d07-5555-5555-9552-0b6d7je99w7f'

delete_team endpoint belongs to Teams table(s), and can therefore be used via those table(s).

SQL Server

Use these SQL queries in SQL Server after you create a data source in Data Gateway:

Delete team

DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM delete_team
WHERE Id = ''abcd-1234-id''
WITH
(
    "ApiVersion" = ''7.0-preview''
)';

EXEC (@MyQuery) AT [LS_TO_AZURE_DEVOPS_IN_GATEWAY];

Delete the specified team by its Id

DECLARE @MyQuery NVARCHAR(MAX) = 'DELETE FROM Teams WHERE Id=''8djr4d07-5555-5555-9552-0b6d7je99w7f''';

EXEC (@MyQuery) AT [LS_TO_AZURE_DEVOPS_IN_GATEWAY];

delete_team endpoint belongs to Teams table(s), and can therefore be used via those table(s).