json
JSONB deletion
Removes a top-level key or matching string array elements with minus; hash-minus removes a nested path.
Formal Syntax & Structure
sql syntaxsql
jsonb - text ; jsonb #- text[]Working Example
Example Snippetsql
SELECT '{"a":{"b":7,"c":9}}'::jsonb #- '{a,b}';