He y'all!
I have a script going that opens up files from a folder I selected, and trying to target a specific sub layer within the file to be deleted.
Here is the file structure:

I'm trying to target that image but when I run the script I get an error "No Such Element"
I'm scratching my head at the object model and have been at this for 2 hrs now. Any help understanding this would definitely be appreciate!
My code:
#target "Illustrator";
var myFolder = Folder.selectDialog (prompt);
var myFiles = myFolder.getFiles("*");
for(i=0; i<myFiles.length;i++){
var myDoc = app.open(myFiles[i]);
try{
myDoc.layers.getByName("Layer 1").layers.getByName("<Clip Group>").pageItems.getByName("<Image>").remove();
myDoc.close (SaveOptions.SAVECHANGES);
} catch(e){
alert(e);
//myDoc.close(SaveOptions.DONOTSAVECHANGES);
}
}