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

39 lines
1.0 KiB
Markdown

# drive +version-delete
> **前置条件:** 先阅读 [`../lark-shared/SKILL.md`](../../lark-shared/SKILL.md) 了解认证、全局参数和安全规则。
删除指定的历史版本。该 shortcut 同时支持 `--as user``--as bot`;自动化场景推荐使用 `--as bot`
## 命令
```bash
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` | 是 | 确认执行高风险删除操作 |
## 返回值
无额外业务字段,以命令成功 / 失败为准。
## 参考
- [lark-drive](../SKILL.md) -- 云空间(云盘/云存储)全部命令
- [lark-shared](../../lark-shared/SKILL.md) -- 认证和全局参数