删除节点默认会连带删除整个子树
原文依据:2 处`+node-delete` 的 `--include-children` 默认值为 `true`。虽然命令要求 `--yes`,但现有说明没有要求在确认前列出后代节点或单独确认级联范围。因此,“删除这个页面”可能被执行为删除页面及其所有子页面。
父节点下的文档结构和内容可能被不可逆地一起删除,影响范围远大于用户看到的单个节点。
该风险由实际命令语义支持:节点删除不可逆,且 `--include-children` 默认为 `true`,所以在用户只确认删除当前页面、却未明确理解级联范围时,可能同时删除整个子树。`--yes` 能阻止未经确认的请求,但现有文字只要求确认高风险操作,没有要求先展示或单独确认后代节点。用户可要求作者在默认级联删除前列出子节点,并对 `include_children=true` 单独确认。
Delete a wiki node (or pull a cloud doc out of Wiki). OpenAPI: `DELETE /open-apis/wiki/v2/spaces/:space_id/nodes/:node_token`.> ⚠️ **High-risk write & irreversible** — deletes the node and (by default) its whole subtree. Requires explicit `--yes`; without it the CLI returns a `confirmation_required` error and nothing is deleted.查看另外 1 个位置
|------|------|----------|---------|-------------|| `--node-token` | string | **Yes** | — | `node_token`, cloud-doc `obj_token`, or a Lark URL embedding one; URL paths also imply `--obj-type` || `--obj-type` | enum | Conditional | — | Required for a raw token (URL inputs auto-infer). `wiki` = the token is a `node_token`; otherwise the cloud-doc type || `--space-id` | string | No | — | Auto-resolved via `get_node` when omitted (extra lookup; pass it to skip) || `--include-children` | bool | No | `true` | Cascade-delete the subtree (default). `--include-children=false` lifts direct children up to the parent || `--yes` | bool | Yes (real delete) | — | Confirm the high-risk operation. Without it the CLI returns `confirmation_required` || `--as` | enum | No | `auto` | Identity `user`/`bot`; wiki is user-centric → pass `--as user` |