Skip to content
Visit booth 3171 at Google Cloud Next to see how to unlock real-time decisions at scaleMore info

Delete

This example deletes the key mykey from the namespace test in the set myset:

let key = as_key!("test", "test", "mykey");
match client.delete(&WritePolicy::default(), &key) {
Ok(true) => println!("Record deleted"),
Ok(false) => println!("Record did not exist"),
Err(err) => println!("Error deleting record: {}", err),
}
Feedback

Was this page helpful?

What type of feedback are you giving?

What would you like us to know?

+Capture screenshot

Can we reach out to you?