Js/remove multiple

Do we still need the id? If so why can't it be generic too?