Search notes:

jq: del

del removes a key and its associated value from a JSON object.
$ echo '{"val_1": "foo", "val_2": "bar", "val_3": "baz"}' | jq 'del(.val_2)'
{
  "val_1": "foo",
  "val_3": "baz"
}
Key names with hyphens must be quoted lest the hyphen be interpreted as minus:
$ echo '{"val-one": "foo", "val-two": "bar", "val-three": "baz"}' | jq 'del(."val-two")'
{
  "val-one": "foo",
  "val-three": "baz"
}

Index