name: agentuity-cli-cloud-storage-delete description: 删除存储资源或文件。需要身份验证。用于Agentuity云平台操作 version: “0.0.103” license: Apache-2.0 allowed-tools: “Bash(agentuity:*)” argument-hint: “[名称] [文件名]” metadata: command: “agentuity cloud storage delete” tags: “destructive deletes-resource slow requires-auth requires-deployment”
云存储删除
删除存储资源或文件
前提条件
- 已通过
agentuity auth login完成身份验证 - 需要组织上下文(
--org-id或默认组织)
使用方法
agentuity cloud storage delete [名称] [文件名] [选项]
参数
| 参数 | 类型 | 必填 | 描述 |
|---|---|---|---|
<名称> |
字符串 | 否 | - |
<文件名> |
字符串 | 否 | - |
选项
| 选项 | 类型 | 必填 | 默认值 | 描述 |
|---|---|---|---|---|
--confirm |
布尔值 | 是 | - | 跳过确认提示 |
示例
删除一个存储桶:
bunx @agentuity/cli cloud storage delete my-bucket
从存储桶中删除一个文件:
bunx @agentuity/cli cloud storage rm my-bucket file.txt
通过交互式选择删除存储桶:
bunx @agentuity/cli cloud storage delete
模拟运行:显示将要删除的内容而不实际执行更改:
bunx @agentuity/cli --dry-run cloud storage delete my-bucket
输出
返回JSON对象:
{
"success": "boolean",
"name": "string"
}
| 字段 | 类型 | 描述 |
|---|---|---|
success |
布尔值 | 删除是否成功 |
name |
字符串 | 已删除的存储桶或文件名 |