Strict Mode error when attempting to programmatically delete a relation field element

Excuse my ignorance as I’m much more devops focused and still learning the finer code skills in javascript. Would it not be easier to just use a .map and a delete path.in.the.object to iterate over the array of objects and delete the key(s) similar to our guide in the docs?