Remove several nested paths at once.
Section: Paths and Deep Updates
Delete multiple paths
bash
bash
echo '{"user":{"password":"secret","token":"abc","name":"alice"}}' | jq 'delpaths([["user","password"],["user","token"]])'Explanation
Very useful for scrubbing sensitive fields.
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 Paths and Deep Updates