Remove a deeply nested field.
Section: Filters and Conditions
Delete nested key
bash
bash
echo '{"user":{"profile":{"ssn":"123","name":"alice"}}}' | jq 'del(.user.profile.ssn)'Explanation
You can target nested paths directly inside `del()`.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Filters and Conditions