SYNOPSIS # Delete everything except foo.bar and baz.bar retain(foo.bar, bar.baz) {bar => { x => 1} , foo => {bar => 1, y => 2}} # becomes {foo => {bar => 1}}