Skip to main content
Deno.Env.delete - Deno documentation
method Deno.Env.delete
allow-env
Env.delete(key: string): void

Delete the value of an environment variable.

Deno.env.set("SOME_VAR", "Value");
Deno.env.delete("SOME_VAR");  // outputs "undefined"

Requires allow-env permission.

Parameters

key: string

Return Type

void