Dart - kv.delete()
Delete key from a key value store.
import 'package:nitric_sdk/nitric.dart';final profiles = Nitric.kv("profiles").allow([KeyValueStorePermission.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 'package:nitric_sdk/nitric.dart';final profiles = Nitric.kv("profiles").allow([KeyValueStorePermission.delete,]);await profiles.delete('profile-1a2b3c');
Last updated on Nov 14, 2024