A simple working solution using vanilla JavaScript:
const valuesToRemove = ["value1", "value2"];
valuesToRemove.forEach(value => {
const mySelect = document.getElementById("my-select");
const valueIndex = Array.from(mySelect.options).findIndex(option => option.value === value);
if (valueIndex > 0) {
mySelect.options.remove(valueIndex);
}
});