Shape.Delete Method (Visio)
Deletes an object or selection.
A variable that represents a Shape object.
If your Visual Studio solution includes the Microsoft.Office.Interop.Visio reference, this method maps to the following types:
This example shows how to delete Shape objects.
Public Sub Delete_Example()
Dim vsoShape As Visio.Shape
Set vsoShape = ActivePage.DrawLine(1, 1, 5, 5)