I think even the case was dismissed, there is still a record somewhere there. But I don't know whether it affect your green card application case or not.