How to delete object in arrays of arrays by id?

const arr = [
  {id: 1, children: [{id: 2, children: [{id: 3}]}},
  {id: 4, children: [{id: 5}]},
  {id: 6, children: [{id: 7}, chidlren: [{id: 7}]]}}
]

I have aray with a lot of objects which can have many children arrays but every object has unique key. So How I can loop through main array and delete some object? For example object with id 3