Delete a variable
DELETE
Removes a variable for the requested kind, or for both kinds without
kind. A name with no value for that kind answers var.not_found.
Existing deployments keep the values they froze.
oauth2 variable.writeheader
AuthorizationBearer <token>Scope: variable.write
variable_name*stringThe name of the variable.
Match
^\w+$Length
1 <= length <= 255project_id*stringThe unique identifier of the project
Match
^[a-zA-Z0-9_-]+$kind?stringThe kind of value to address. Omit it for both kinds.
Value in
"primary""preview"The variable was deleted.
Example Request
import { createZitadelClient } from "@zitadel/api/client";const client = createZitadelClient({ baseUrl: process.env.ZITADEL_URL ?? "http://localhost:8080", token: process.env.ZITADEL_PROJECT_SECRET!, // server-side only});await client.deleteVariable("GITHUB_CLIENT_ID", { project_id: "proj_01KWH1P4MYS7F0N9WD3P2E4YM5" });Example Response
Empty
Was this helpful?