userProfileOS.delete(o);
userProfileOSW.delete(o);
    private void cleanUserProfile() throws ObjectStoreException {        if (userProfileOS.isInTransaction()) {            userProfileOS.abortTransaction();        }        Query q = new Query();        QueryClass qc = new QueryClass(Tag.class);        q.addFrom(qc);        q.addToSelect(qc);        ObjectStore os = userProfileOS.getObjectStore();        SingletonResults res = new SingletonResults(q, userProfileOS.getObjectStore(),                                                    userProfileOS.getObjectStore()                                                    .getSequence());        Iterator resIter = res.iterator();        userProfileOS.beginTransaction();        while (resIter.hasNext()) {            InterMineObject o = (InterMineObject) resIter.next();            userProfileOS.delete(o);        }        userProfileOS.commitTransaction();        userProfileOS.close();    }