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: "g469947d", value: "foo"
)

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

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

curl "https://proc.run/keyv/delete?bucket=g469947d" --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.