remove useless documents