-- KEYS: [1]key [2]subKey

local cur = redis.call("HGET", KEYS[1], KEYS[2])
redis.call("HDEL", KEYS[1], KEYS[2])
return cur