There will be dao.detachAll()
in the next release. The commit is here:
https://github.com/greenrobot/greenDAO/commit/6a658c84e7de97073a260e062b06e3cc13a18196
Side note: use yourDao.detach(yourEntity)
to remove a single entity from the identity scope. This forces subsequent queries for this database object to return a different object.