Javascript Delete All Objects in My Patcher

Crash Angel's icon

Hi, Im Beginner ...

How I Loop All Objects in bpatcher and delete this
less my javascript object...

I Search in forums and found this function... How Name this my bpatcher??

function DeleteAll()
{
    var i;
    ///"Obj_MaxName" is the name of my array
    for(i = 0; i < Obj_MaxName.length; i++){
    this.patcher.remove(Obj_MaxName[i]);
        }
}