var myArr=[];
for (var i=0; i<app.activeDocument.textFrames.length; i++){
if (app.activeDocument.textFrames[i].appliedObjectStyle.name=="myname") {
myArr.push (app.activeDocument.textFrames[i])
}
}
for (var j=myArr.length-1; j>-1;j--){
myArr[j].remove()
}