If they are nested (?) And you want to remove the children in the div 'page1', you can do something like this, perhaps:
$('#page1' > div).remove();
Or, if you want to selectively do this - and only delete specific divs on page 1 - you can add a class to it and do the same.
source share