Remove an existing page
/Description: Remove an existing page.
Assumptions: An optional 'myPage' page type script parameter.
Warning: Backup Spotfire files before removing pages.
#Pick one of the following Page reference options: #myPage = Application.Document.Pages[3] #Page index method #myPage = Application.Document.ActivePageReference #Active page method #myPage as a page type script parameter #Script parameter method #Remove an existing page Application.Document.Pages.Remove(myPage) #Removes myPage #Application.Document.Pages.RemoveAt(6) #Removes the 7th page