I have a document looking like this:
{ field: \'value\', field2: \'value\', scan: [ [ { dontDeleteMe: \'keepMe\', arrayTo
I have tried with your given sample document and its working , you have to use $[] to achieve this :
$[]
db.collectionName.(update({},{$unset: { "scan.$[].$[].arrayToDelete": 1 }})