Delete an environment secret
secret_deleteRemove one named secret from the selected project and environment using an idempotency key. The value is never accepted or returned. Removal changes the runtime binding without a new deployment and can break the running application. The result includes desired_generation, applied_generation and delivery_state.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"idempotency_key": "<idempotency_key>",
"project_id": "<project_id>",
"environment_id": "<environment_id>",
"name": "<name>"
},
"name": "secret_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Uppercase environment-variable name. Set refuses a name starting with OHMYHOST_ and the platform names BETTER_AUTH_SECRET, BETTER_AUTH_URL, DATABASE_URL, HYPERDRIVE, ASSETS, FILES, IMAGES and STORAGE with a 400 whose detail is "Secret name is reserved.". Delete refuses the installed platform keys OHMYHOST_AI_KEY, OHMYHOST_MAIL_KEY, OHMYHOST_STORAGE_KEY, OHMYHOST_BROWSER_KEY and BETTER_AUTH_SECRET with the same detail. | |
| project_id | Yes | Project identifier. | |
| environment_id | Yes | Environment identifier. | |
| idempotency_key | Yes | Identifies one mutation and its canonical request payload. |