I have a script where i define the following variable for a build script:
$globalExcludePath = @('obj', 'App_Data', 'Properties' )
I'd like to remove an item in a specific function but the remove function doesn't exist and i couldn't find any pointer on how to do it.
$customExcludePath = $globalExcludePath
$customExcludePath.Remove('App_Data') # fails
Any idea on how to do it?