Without knowing which challenge this is for, here are some guesses.
The challenge may not want you to alter the original array.
You have to return newArray, which doesn’t contain a certain element.
The source array is nested, so you need a way to iterate though the array.
You have to check for a certain element - write down the different ways to do this.
What are the alternatives to deleting items?
We cannot give solutions on the forum.
I’ve spent days working on a single problem, the pay off is that I learn a lot more, and the next challenging problem is a little easier.
If you want, try out some different ways to approach the problem. If you get stuck, just ask the forum for help.