Projects - Delete
將專案排入佇列以刪除。 使用 GetOperation 定期檢查刪除項目狀態。
DELETE https://dev.azure.com/{organization}/_apis/projects/{projectId}?api-version=7.1
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
organization
|
path | True |
string |
Azure DevOps 組織的名稱。 |
project
|
path | True |
string (uuid) |
要刪除之專案的項目識別碼。 |
api-version
|
query | True |
string |
要使用的 API 版本。 這應該設定為 『7.1』 以使用此版本的 API。 |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
成功作業 |
安全性
oauth2
類型:
oauth2
Flow:
accessCode
授權 URL:
https://app.vssps.visualstudio.com/oauth2/authorize&response_type=Assertion
權杖 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
範圍
名稱 | Description |
---|---|
vso.project_manage | 授與建立、讀取、更新和刪除專案和小組的能力。 |
定義
名稱 | Description |
---|---|
Operation |
異步作的參考。 |
Operation |
作業的目前狀態。 |
OperationReference
異步作的參考。
名稱 | 類型 | Description |
---|---|---|
id |
string (uuid) |
作業的唯一標識碼。 |
pluginId |
string (uuid) |
外掛程式的唯一標識碼。 |
status |
作業的目前狀態。 |
|
url |
string |
取得完整作業物件的 URL。 |
OperationStatus
作業的目前狀態。
值 | Description |
---|---|
cancelled |
使用者已取消作業。 |
failed |
作業已完成,但失敗。 |
inProgress |
作業正在進行中。 |
notSet |
作業沒有狀態集。 |
queued |
作業已排入佇列。 |
succeeded |
作業已順利完成。 |