VBScript » Dictionary » Remove

Version: 2.0

Syntax:
object.Remove(keyvalue)
Keyvalue
The value of the key associated with the item being returned or set.

The Remove method is used to remove a single key/item pair from the specified Dictionary object.

Examples

Code:
<%
dim guitars
set guitars=CreateObject("Scripting.Dictionary")
guitars.Add "e", "Epiphone"
guitars.Add "f", "Fender"
guitars.Add "g", "Gibson"
guitars.Add "h", "Harmony"
guitars.Remove("g")
%>
Output:
"Epiphone"
"Fender"
"Harmony"