Skip to main content
DELETE
Delete env_var

Authorizations

Authorization
string
header
required

Most Braintrust endpoints are authenticated by providing your API key as a header Authorization: Bearer [api_key] to your HTTP request. You can create an API key in the Braintrust organization settings page.

Path Parameters

env_var_id
string<uuid>
required

EnvVar id

Response

Returns the deleted env_var object

id
string<uuid>
required

Unique identifier for the environment variable

object_type
enum<string>
required

The type of the object the environment variable is scoped for

Available options:
organization,
project,
function
object_id
string<uuid>
required

The id of the object the environment variable is scoped for

name
string
required

The name of the environment variable

created
string<date-time> | null

Date of environment variable creation

secret_updated_at
string<date-time> | null

Date of last update to the encrypted secret value itself

secret_updated_by_user_id
string<uuid> | null

User id of the last update to the encrypted secret value

used
string<date-time> | null

Date the environment variable was last used

metadata
object | null

Optional metadata associated with the environment variable when managed via the function secrets API

preview_secret
string | null

Redacted preview of the stored secret value

secret_type
string | null

Optional classification for the secret (for example, the AI provider name)

secret_category
enum<string>
default:env_var

The category of the secret: env_var for regular environment variables, ai_provider for AI provider API keys

Available options:
env_var,
ai_provider,
sandbox_provider