PersistenceManager pm = mPmf.getPersistenceManager();
Key parentKey = note.getKey().getParent();
try{
pm.currentTransaction().begin();
NoteList notesList = pm.getObjectById(NoteList.class, parentKey);
note = pm.getObjectById(Note.class, note.getKey());
notesList.getNotes().remove(note);
pm.makePersistent(notesList);
pm.currentTransaction().commit();
}catch (Exception ex) {
pm.currentTransaction().rollback();