Node.js - kv.delete()
Delete key from a key value store.
import { kv } from '@nitric/sdk'const profiles = kv('profiles').allow('delete')await profiles.delete('profile-1a2b3c')
Parameters
- Name
key
- Required
- Required
- Type
- string
- Description
The key that references the key value pair that should be deleted.
Examples
Delete a key
import { kv } from '@nitric/sdk'const profiles = kv('profiles').allow('delete')await profiles.delete('profile-1a2b3c')
Last updated on Nov 11, 2024