function removePage(page) {
  // get doc
  let doc = Context().document

  // get current page
  let currentPage = doc.currentPage()

  // remove page
  doc.removePage(page)

  // make current page active again
  doc.setCurrentPage(currentPage)
}
Removes the page with the specified name from the current document.

@param {MSPage} page