how to remove the elements returned in an array?

how to remove the elements returned in an array?

hello,
i have a var  ids = [] that returns some id's. for example
<li id="11"></li>
<li id="12"></li>

the variable ids will be return 11,12.

what i want to do is to find those <li>'s  with those id's and remove them.

thanks,