Endpoints - Delete

Delete a service endpoint

DELETE https://dev.azure.com/{organization}/_apis/serviceendpoint/endpoints/{endpointId}?projectIds={projectIds}&api-version=7.1
DELETE https://dev.azure.com/{organization}/_apis/serviceendpoint/endpoints/{endpointId}?projectIds={projectIds}&deep={deep}&api-version=7.1

URI Parameters

Name In Required Type Description
endpointId
path True

string

uuid

Endpoint Id of endpoint to delete

organization
path True

string

The name of the Azure DevOps organization.

api-version
query True

string

Version of the API to use. This should be set to '7.1' to use this version of the api.

projectIds
query True

string

array (string)

project Ids from which endpoint needs to be deleted

deep
query

boolean

delete the spn created by endpoint

Responses

Name Type Description
200 OK

successful operation

Security

oauth2

Type: oauth2
Flow: accessCode
Authorization URL: https://app.vssps.visualstudio.com/oauth2/authorize&response_type=Assertion
Token URL: https://app.vssps.visualstudio.com/oauth2/token?client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer

Scopes

Name Description
vso.serviceendpoint_manage Grants the ability to read, query and manage service endpoints.

Examples

Delete service endpoint

Sample request

DELETE https://dev.azure.com/{organization}/_apis/serviceendpoint/endpoints/{endpointId}?projectIds=c7e5f0b3-71fa-4429-9fb3-3321963a7c06&api-version=7.1

Sample response