keyv.delete
0.000005

Deletes a key.

Arguments
bucketrequired
The bucket the key is stored under.
key
The key to delete.
Return Value
true if the key was deleted, otherwise false.
something went wrong :(
Deleting a key from a bucket
Setup
authorization=PROCAUTH
require "proc"

client = Proc.connect("PROCAUTH")
const Proc = require("@proc.dev/client");
const client = Proc.connect("PROCAUTH");
client.keyv.set.call(
  bucket: "e38c51b9", value: "foo"
)

client.keyv.delete.call(
  bucket: "e38c51b9"
)
client.keyv.set.call(
  undefined, e38c51b9
);

client.keyv.delete.call(
  undefined, e38c51b9
);
curl "https://proc.run/keyv/set?bucket=e38c51b9" --silent \
--header "authorization: bearer $authorization" \
--header "content-type: text/plain" \
--data "foo"

curl "https://proc.run/keyv/delete?bucket=e38c51b9" --silent --request POST \
--header "authorization: bearer $authorization" \
--header "content-type: text/plain"
 

true


Stuck? Want to chat about an idea? Join the community on Discord.