PagePanel.RemovePanelAt
From Xojo Documentation
Method
Removes the page at the Index passed. The first panel is numbered zero.
Notes
It will also remove all of the controls on the panel.
Example
This example removes the first panel.
PagePanel1.RemovePanelAt(0)