I have a complex javascript object containing multiple nested arrays and maps. I would like to delete every field of the object with a given name.
For example:
{
  "myObj":{
    "name":"John",
    "deleteMe":30,
    "cars":{
      "car1":"Ford",
      "car2":"BMW",
      "deleteMe":"Fiat",
      "wheels":{
        "one":"Round",
        "two":"Square",
        "deleteMe":"Fiat"
        }
    }
  }
}
How could I delete every field with a name/key of "deleteMe". I do not know the structure of the object ahead of time.
 
     
     
     
    