Take into account that, when retrieving the entire list of messages of one of the threads, it could be an error when retrieving, so this thread *should not* be removed (because we can not ensure that the thread is gonna be deleted). 
As we are going to move forward with a complete solution,you should include this.