API Documentation > CorelDRAW > 2025-v26 > DataItems > IVGDataItems
DataItems.Clear method
Clears DataItem collection
Syntax:
Sub Clear()
Remarks:
The Clear method clears the values of all data items associated with the given shape. A data item stores information about a shape object. The Name and CDRStaticID fields are used by CorelDRAW to identify objects and cannot be erased.
Examples:
The following VBA example clears all values from all data fields for the currently selected shape.
Sub Test()
ActiveShape.ObjectData.Clear 
End Sub