I created an entity in the Google App Engine datastore.
How can I remove this entity?
You haven't specified which API you're using.
In Python it's like so:
db.delete(modelId)
In Java it should be like (I haven't tested this):
PersistenceManager pm = PMF.get().getPersistenceManager();
MyModel entity = pm.getObjectById(MyModel.class, modelId);
pm.deletePersistent(entity);
pm.close();
In python if you know the key it really simple:
db.delete(key)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With