Cloud Env Delete
Delete an environment variable or secret
Prerequisites
- Authenticated with
agentuity auth login
Usage
agentuity cloud env delete <key> [options]
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
<key> |
string | Yes | - |
Options
| Option | Type | Required | Default | Description |
|---|---|---|---|---|
--org |
optionalString | Yes | - | delete from organization level (use --org for default org, or --org for specific org) |
Examples
Delete variable:
bunx @agentuity/cli env delete OLD_FEATURE_FLAG
Delete a secret:
bunx @agentuity/cli env rm API_KEY
Delete org-level secret:
bunx @agentuity/cli env rm OPENAI_API_KEY --org
Output
Returns JSON object:
{
"success": "boolean",
"key": "string",
"path": "string",
"secret": "boolean",
"scope": "string"
}
| Field | Type | Description |
|---|---|---|
success |
boolean | Whether the operation succeeded |
key |
string | Variable key that was deleted |
path |
string | Local file path where variable was removed (project scope only) |
secret |
boolean | Whether a secret was deleted |
scope |
string | The scope from which the variable was deleted |