set deletedObject = aMap.removeMapValue(aKey)
aMap
akey
deletedObject
aKey
An object of type Map.
hashMap.removeMapValue("John Snow");
Clear an Entire Map
There is no operation to clear an entire map, but this goal can easily be achieved by two action script statements.
local entries = hashMap.getMapEntries(); apply hashMap.removeMapValue(element.key) to entries;