public boolean deleteWorklistItem(String user, WorklistItemObject wio){
Query q_user = new Query(ACCOUNT_KIND);
q_user.setKeysOnly();
q_user.addFilter(ACCOUNT_ID_PROPERTY, FilterOperator.EQUAL, user);
PreparedQuery pq = datastore.prepare(q_user);
Entity e_user = pq.asSingleEntity();
if (e_user == null)
return false;
Key k = e_user.getKey();
Query q_wio = new Query(WORKLIST_ITEM_KIND);
q_wio.setAncestor(k);
q_wio.setKeysOnly();
q_wio.addFilter(WORKLIST_ITEM_DEPT_PROPERTY, FilterOperator.EQUAL, wio.getDeptId());
q_wio.addFilter(WORKLIST_ITEM_COURSE_PROPERTY, FilterOperator.EQUAL, wio.getCourseId());
q_wio.addFilter(WORKLIST_ITEM_SECTION_PROPERTY, FilterOperator.EQUAL, wio.getSectionId());
PreparedQuery pq_wio = datastore.prepare(q_wio);
if(pq_wio.asSingleEntity() == null)
return false;
Transaction txn = datastore.beginTransaction();
datastore.delete(pq_wio.asSingleEntity().getKey());
txn.commit();
return true;
}