support emptying hash