Octopus Variables Octopus.Client dll API

Hi ,

I’m trying to remove Variable from Octopus Project Variable set using Octopus.Client dll .

#Getting the project’s variable set
$variableSet = $repository.VariableSets.Get($project.links.variables)

$variableSet.Variables.Remove

OverloadDefinitions

bool Remove(Octopus.Client.Model.VariableResource item)
bool ICollection[VariableResource].Remove(Octopus.Client.Model.VariableResource item)
void IList.Remove(System.Object value)

I’m not sure what value do I need to pass to remove variable in remove method displayed above .

Any help would be appreciated :slight_smile:

Regards

Mariusz