API Documentation > CorelDRAW > 2025-v26 > Page > IVGPage
Page.Delete method
Deletes an instance of a page from a document
Syntax:
Sub Delete()
Remarks:
The Delete method removes a page from a document and deletes all shapes on that page.
Examples:
The following VBA example deletes all empty pages in the active document.
Sub Test()
Dim p As Page
For Each p In ActiveDocument.Pages
  If p.Shapes.Count = 0 Then p.Delete
  Next p

End Sub