name: agentuity-cli-project-delete description: 删除项目。需要身份验证。用于项目管理操作 version: “0.0.103” license: Apache-2.0 allowed-tools: “Bash(agentuity:*)” argument-hint: “[id]” metadata: command: “agentuity project delete” tags: “destructive deletes-resource slow requires-auth”
项目删除
删除一个项目
前提条件
- 已通过
agentuity auth login完成身份验证
使用方法
agentuity project delete [id] [options]
参数
| 参数 | 类型 | 是否必需 | 描述 |
|---|---|---|---|
<id> |
字符串 | 否 | - |
选项
| 选项 | 类型 | 是否必需 | 默认值 | 描述 |
|---|---|---|---|---|
--confirm |
布尔值 | 是 | - | 跳过确认提示 |
示例
删除项目:
bunx @agentuity/cli project delete
删除项目:
bunx @agentuity/cli project delete proj_abc123def456
使用确认选项:
bunx @agentuity/cli project delete proj_abc123def456 --confirm
删除项目:
bunx @agentuity/cli project rm proj_abc123def456
删除项目:
bunx @agentuity/cli --explain project delete proj_abc123def456
删除项目:
bunx @agentuity/cli --dry-run project delete proj_abc123def456
输出
返回 JSON 对象:
{
"success": "boolean",
"projectIds": "array",
"count": "number"
}
| 字段 | 类型 | 描述 |
|---|---|---|
success |
布尔值 | 删除操作是否成功 |
projectIds |
数组 | 已删除的项目ID列表 |
count |
数字 | 已删除的项目数量 |