Files
Starlight_Lancher/.agents/skills/lark-drive/references/lark-drive-version-delete.md

1.0 KiB

drive +version-delete

前置条件: 先阅读 ../lark-shared/SKILL.md 了解认证、全局参数和安全规则。

删除指定的历史版本。该 shortcut 同时支持 --as user--as bot;自动化场景推荐使用 --as bot

命令

lark-cli drive +version-delete \
  --file-token boxcnxxxxxxxx \
  --version 7633658129540910621 \
  --yes \
  --as bot

lark-cli drive +version-delete \
  --file-token boxcnxxxxxxxx \
  --version 7633658129540910621 \
  --yes \
  --as user

参数

参数 必填 说明
--file-token 目标文件 token
--version drive +version-history 返回的长数字 version 字段,不是 tag
--yes 确认执行高风险删除操作

返回值

无额外业务字段,以命令成功 / 失败为准。

参考