3.2.9 DestroyPage

Description

The DestroyPage method deletes an existing Origin page.

Syntax

DestroyPage(PageName)

Parameters

PageName

Specify the name of the page to be deleted

Return

True if success.

Examples

#Please create a workbook named NewBook, then excute the scirpt below to delete the page
import PyOrigin
PyOrigin.DestroyPage('NewBook')