The Dart SDK is currently in experimental status. If you would like to provide feedback, please reach out to us with your suggestions and comments on our Discord.
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');