And you can also look here: http://code.google.com/intl/en/appengine/docs/java/datastore/queriesandindexes.html#Delete_By_Query
To google guys: By the way, there's a typo in the last link of that paragraph, which doesn't have an anchor. On Sat, Nov 7, 2009 at 3:29 PM, Rusty Wright <rwright.li...@gmail.com>wrote: > > Have a look at the Query class; you can use the id/key in the query. > http://xrl.in/3m1e http://xrl.in/3m1f > > > Peter Recore wrote: > > Is there a way to delete an entity without having to fetch it from the > > datastore first? > > Ideally, there would be a deleteObjectById analogue to getObjectById > > on PersistenceManager. > > > > The closest I can think of is using Query.deletePersistentAll() and > > specifying a keys only query, but I can't tell if that is going to > > fetch the entity before deleting it. > > > > -peter > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~----------~----~----~----~------~----~------~--~---