> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pathors.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 刪除節點

> 刪除一個節點及其連接的邊

## 請求

```bash theme={null}
DELETE https://api.pathors.com/v1/projects/{projectId}/pathway/nodes/{nodeId}
```

### 路徑參數

<ParamField path="projectId" type="string" required>專案 ID</ParamField>
<ParamField path="nodeId" type="string" required>節點 ID</ParamField>

### 標頭

<ParamField header="Authorization" type="string" required>
  使用您的 Developer Key 進行 Bearer 令牌認證
</ParamField>

## 回應

回傳因刪除該節點而一併被刪除的邊清單。

```json theme={null}
{
  "message": "Node deleted",
  "deletedEdges": ["edge-1", "edge-3"]
}
```

<Warning>
  所有連接至此節點的邊（無論作為來源或目標）都將被自動刪除。
</Warning>
