v0 Platform API/API Reference/Projects

Delete Environment Variables

Deletes multiple environment variables for a given project by their IDs.

POST/v1/projects/{projectId}/env-vars/delete

Usage

TypeScript Example
import { v0 } from 'v0-sdk'

const result = await v0.projects.deleteEnvVars({
  projectId: 'project_abc123',
  environmentVariableIds: ['env_def456', 'env_ghi789'],
})

console.log(result)

API Signature

Request

Path Parameters

projectId: string

The unique identifier of the project whose environment variables should be deleted.

Body

environmentVariableIds: string[]

An array of environment variable IDs to delete.

Response

object: 'list'
data: object[]
id: string
object: 'environment_variable'
deleted: 'true'