You can use DatastoreService.delete(Key...) http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/DatastoreService.html#delete(com.google.appengine.api.datastore.Key...)
On Sat, Nov 7, 2009 at 11:05 AM, Peter Recore <[email protected]> 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~----------~----~----~----~------~----~------~--~---
