ASELOBJ(aa,1) ox= aa[1] ?ox.baseclass * just checking... if you got yourself a member of the page, repeat this ox=ox.parent ?ox.baseclass *-- until it returns pageframe, or just start over. Once ox is your pageframe, ox.removeobject(ox.pages(9).name) *-- or if you know the name ox.removeobject("pg4")*-- the easiest way to get rid of all the pages is to just set the pagecount to zero, and then have some code in some metadata or wherever, which will add pages one at a time. These pages may all be of the same class and have a parameter passed (name of the container class to slap on) or be subclassed from the same class (one per page - with controls or such a container already on them).