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

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
Back to top