# delete_project

> 這個 AirBuild MCP 工具會永久刪除一個專案：它的檔案、它的聊天以及其中的一切。

Source: https://air.build/tw/docs/mcp-tools/delete_project/

`delete_project` 會永久刪除一個專案：它的檔案、它的聊天及其中的每則訊息、它的圖片和它的 App 套件。刪除後無法復原，工具也不會要求確認。它不會刪除 App Store 或 TestFlight 上的 App，也不會移除團隊的 Agent：它們會留在團隊中，並保留其他聊天。團隊中的任何人都可以呼叫。

| 唯讀 | 破壞性 | 冪等 |
| --- | --- | --- |
| 否 | 是 | 是 |

## 輸入

| 輸入 | 類型 | 必填 | 預設值 | 作用 |
| --- | --- | --- | --- | --- |
| `teamId` | 字串（UUID） | 是 | — | 團隊，來自 [list_teams](https://air.build/tw/docs/mcp-tools/list_teams/) |
| `projectId` | 字串（UUID） | 是 | — | 要刪除的專案，來自 [list_projects](https://air.build/tw/docs/mcp-tools/list_projects/) |

## 結果

| 欄位 | 說明 |
| --- | --- |
| `deleted` | `true` |

```json
{ "deleted": true }
```

## 錯誤

| 訊息 | 何時出現 | 處理方式 |
| --- | --- | --- |
| Project not found. | 這個團隊中沒有該 ID 的專案，或它已被刪除 | 用 [list_projects](https://air.build/tw/docs/mcp-tools/list_projects/) 檢查：如果不在清單中，就是已經刪除了 |
| Team not found. | 團隊不存在，或你不在其中 | 使用 [list_teams](https://air.build/tw/docs/mcp-tools/list_teams/) 傳回的 `teamId` |

對同一個專案的第二次呼叫會傳回 `Project not found.`：第一次呼叫已經刪除了它。所有工具都可能傳回的錯誤，請參閱 [伺服器與登入](https://air.build/tw/docs/mcp-tools/server/#errors)。

## 範例

```json
{"name": "delete_project", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000", "projectId": "00000000-0000-0000-0000-000000000000"}}
```
