Remove a key value pair from an existing hash table
suggest changeHashtable.Remove takes the key. This removes the Key2 entry:
$hashTable = @{
Key1 = 'Value1'
Key2 = 'Value2'
}
$hashTable.Remove("Key2")
$hashTable
#Output
Name Value
---- -----
Key1 Value1
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents