Skip to main content
Deno.Kv.prototype.delete - Deno documentation
method Deno.Kv.prototype.delete
Kv.prototype.delete(key: KvKey): Promise<void>

Delete the value for the given key from the database. If no value exists for the key, this operation is a no-op.

const db = await Deno.openKv();
await db.delete(["foo"]);

Parameters

key: KvKey

Return Type

Promise<void>
Back to top