Python - kv.delete()

Delete key from a key value store.

from nitric.resources import kv
from nitric.application import Nitric
profiles = 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 kv
from nitric.application import Nitric
profiles = kv('profiles').allow('delete')
await profiles.delete('profile-1a2b3c')
Nitric.run()
Last updated on Nov 8, 2024