How to delete specific record from Google Datastore (in Java)?
-
02-10-2019 - |
Question
I have some records in datastore, I want to delete a specific record from the table. for example in SQL , we use delete * from table1 where name ="mike"
what is the equivalent code in java (I m using Eclipse with Google appengine API plugin)? or any other method to do that?
Solution
Take a look at the documentation, specifically these articles: Queries and Indexes and Creating, Getting and Deleting Data.
OTHER TIPS
//get all the matching objects
//loop over the matching objects
////deleting each object
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow