JSFiddle - React, Tailwind, and code Playground

HTML

<select id="test">
    <option>Pears</option>
    <option>Apple</option>
</select>

JavaScript

var dropdown = document.getElementById("test");

var childs = dropdown.childNodes;

for(var i = 0; i < childs.length; i++){
   var child = childs[i];
    if(child.innerText === "Pears"){
        dropdown.removeChild(child);
    }
}