Support erase on hashmap