table: TEST1 jsonB column: COLUMN1
[{a: 1, b: 2, c:3},
{a: 4, b: 5, c:6},
{a: 7, b: 8, c:9}]
I want to select on the value of a = 4 and remove the whole object it is part of for result as below
[{a: 1, b: 2, c:3},
{a: 7, b: 8, c:9}]
I can locate record with WHERE COLUMN1->>'a' = 4
but I have not been able to figure out or how to find this basic use case: eg delete an object from an array as part of a JSONB column
For one or many records