How do I remove LOV values using ISHRemote?

Hi,

I am having difficulty with a LOV element and some duplicate values that I accidentally added and want to remove.

I have tried to create ISHRemote script to remove them but don't understand how to set the value for -LovValueId argument

$lovValues = Get-IshLovValue -IshSession $ishSession -LovId "DMARKETPLACE"
foreach($lovValue in $lovValues)
{
   Remove-IshLovValue -LovId $lovValue.LovId -LovValueId $lovValue.IshRef
}

Any advice appreciated,

Regards,

Ann

emoji