You did not specify which API you are using.
In Python, it is like this :
db.delete(modelId)
In Java, it should be like (I have not tested this):
PersistenceManager pm = PMF.get().getPersistenceManager();
MyModel entity = pm.getObjectById(MyModel.class, modelId);
pm.deletePersistent(entity);
pm.close();
source
share