name: agentuity-cli-cloud-keyvalue-delete description: 从键值存储中删除一个键。需要身份验证。用于Agentuity云平台操作 version: “0.0.103” license: Apache-2.0 allowed-tools: “Bash(agentuity:*)” argument-hint: “<namespace> <key>” metadata: command: “agentuity cloud keyvalue delete” tags: “destructive deletes-resource slow requires-auth”
云键值删除
从键值存储中删除一个键
前提条件
- 已通过
agentuity auth login完成身份验证 - 需要项目上下文(从项目目录运行或使用
--project-id)
使用方法
agentuity cloud keyvalue delete <namespace> <key>
参数
| 参数 | 类型 | 是否必需 | 描述 |
|---|---|---|---|
<namespace> |
字符串 | 是 | - |
<key> |
字符串 | 是 | - |
示例
删除用户数据:
bunx @agentuity/cli kv delete production user:123
删除缓存会话:
bunx @agentuity/cli kv delete cache session:abc
删除主页缓存(使用别名):
bunx @agentuity/cli kv rm staging cache:homepage
输出
返回JSON对象:
{
"success": "boolean",
"namespace": "string",
"key": "string",
"durationMs": "number"
}
| 字段 | 类型 | 描述 |
|---|---|---|
success |
布尔值 | 操作是否成功 |
namespace |
字符串 | 命名空间名称 |
key |
字符串 | 键名称 |
durationMs |
数字 | 操作持续时间(毫秒) |