Skip to main content

delete

method Deno.Env.delete
allow-env
Jump to headingEnv.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 Jump to heading

Jump to headingkey: string

Return Type Jump to heading

void
Back to top