The following example removes all elements from an associative array.

var aTest = new AssocArray( )

aTest[ "USA" ] = "United States of America"

aTest[ "RUS" ] = "Russian Federation"

aTest[ "GER" ] = "Germany"

aTest[ "CHN" ] = "People's Republic of China"

// Array contains four elements

aTest.removeAll( ) // Array now contains no elements