Remove a field from an object.
Section: Filters and Conditions
Delete object key
bash
bash
echo '{"name":"alice","password":"secret"}' | jq 'del(.password)'Explanation
`del()` is useful for sanitizing secrets or noisy 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 Filters and Conditions