I created entity in google App Engine datastore.I know how to create entity and remove data from table.My constraints is how to delete entity from google App engine Datastore?
Thanks in advance
I created entity in google App Engine datastore.I know how to create entity and remove data from table.My constraints is how to delete entity from google App engine Datastore?
Thanks in advance
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)