节点删除默认级联删除整个子树
原文依据:2 处node-delete 是不可逆操作,而 include-children 的默认值为 true。因此仅确认“删除这个节点”并带上 --yes,可能同时删除其所有后代节点;命令并不要求用户显式选择是否级联。
一个有子节点的页面被删除时,整棵下级目录及内容可能永久丢失。节点解析错误或用户不了解默认值时,损失范围会远大于表面目标。
成立。真实删除受 `--yes` 保护,但 `--include-children` 默认为 true,因此确认删除一个节点时会默认不可逆地删除整个子树;命令不要求另行确认级联范围。用户可要求执行前解析并展示节点及其后代数量,并在未明确批准级联时强制传 `--include-children=false`,使直接子节点提升到父节点。
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.- **Sync / async**: an empty `task_id` means the delete completed synchronously (`ready=true`). A non-empty `task_id` triggers bounded polling; if the window elapses the output carries `timed_out=true` and a `next_command`: `lark-cli drive +task_result --scenario wiki_delete_node --task-id <TASK_ID> --as <user|bot>`查看另外 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` |