Skip to main content
DELETE
/
v1
/
apps
/
{id}
/
envs
Delete Application Environment Variables
curl --request DELETE \
  --url https://api.vertracloud.app/v1/apps/{id}/envs \
  --header 'Content-Type: application/json' \
  --data '
{
  "keys": [
    {}
  ]
}
'
{
  "response": [
    {
      "id": "env456",
      "key": "DATABASE_URL",
      "value": "mysql://user:pass@localhost/db",
      "note": null,
      "created_at": "2026-03-14T19:58:00Z"
    }
  ]
}
id
string
required
The ID of the application to delete environment variables from. If the application belongs to a workspace, include the workspace_id in the format appId-workspace_id.
keys
array
required
An array of environment variable keys to delete.

Response

response
array
An array of remaining environment variable objects after deletion.
{
  "response": [
    {
      "id": "env456",
      "key": "DATABASE_URL",
      "value": "mysql://user:pass@localhost/db",
      "note": null,
      "created_at": "2026-03-14T19:58:00Z"
    }
  ]
}

Error Responses

code
string
The error code indicating the reason for failure. Possible values:
  • UNAUTHORIZED: The user is not authenticated or lacks sufficient permissions.
  • FORBIDDEN: The user does not have permission to access the application.
  • APP_NOT_FOUND: The specified application does not exist.
  • INVALID_BODY: The request body is not a valid array or is empty.
  • INVALID_KEY: One or more provided keys are invalid or forbidden.
  • ENVIRONMENTS_NOT_FOUND: None of the specified environment variables were found.
message
string
A descriptive message providing additional details about the error.
{
  "code": "UNAUTHORIZED"
}