Python - kv.delete()
Delete key from a key value store.
from nitric.resources import kvfrom nitric.application import Nitricprofiles = kv('profiles').allow('delete')await profiles.delete('profile-1a2b3c')Nitric.run()
Parameters
- Name
key
- Required
- Required
- Type
- string
- Description
The key that references the key value pair that should be deleted.
Examples
Delete a key
from nitric.resources import kvfrom nitric.application import Nitricprofiles = kv('profiles').allow('delete')await profiles.delete('profile-1a2b3c')Nitric.run()
Last updated on Dec 19, 2024