> 20:44 <raven> lee=# select jsonb_set('{"foo":"aaaaaa","bar":[444, 555, {"test": false, "failed": 1}]}'::jsonb, '{foo}', NULL); 20:44 <raven> jsonb_set 20:44 <raven> ----------- The usage of `NULL` rather than `'null'::jsonb` clears out the JSON values.