@franciscolou22 That is a little more involved because you need to capture the state of the selections first in an array, then remove the green one from it using the JS splice function, and then re-apply.
let selIndices = $w("#TagSelection").selectedIndices;
const index = selIndices.indexOf(1);
if (index > -1) {
selIndices.splice(index, 1);
$w("#TagSelection").selectedIndices = selIndices;
}
You may find it easier to work with the value property. I don’t know what value you assigned to the selection tag with the label “Green”, but this is how it would be done if the value of that tag was also “Green”.
let selValues = $w("#TagSelection").value;
const index = selValues.indexOf("Green");
if (index > -1) {
selValues.splice(index, 1);
$w("#TagSelection").value = selValues;
}