API Documentation > CorelDRAW > 2025-v26 > Layer > IVGLayer
Layer.Delete method
Deletes the layer
Syntax:
Sub Delete()
Remarks:
The Delete method removes a layer and its contents.
Examples:
The following VBA example deletes the layer named Layer 1 on the active page, as well as its contents.
Sub Test()
ActivePage.Layers("Layer 1").Delete 
End Sub