Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/tpy/src/kv.ts>TpyKV#delete

🔑 A strongly typed Pylon API client.
Latest
method TpyKV.prototype.delete
import { TpyKV } from "https://deno.land/x/tpy@v1.0.0-RC/src/kv.ts";

Deletes a given key from the namespace. Throwing if the key does not exist, or if options.prevValue is set the previous value is not equal to the value provided.

Parameters

key: string

The key to delete.

optional
options: KV.OperationOptions.Delete

Options, which can provide a delete if equals.