Delete Dangling (Unattached dimensions)

HI,
I am seraching for API to delete dangling dimension from a drawingsheet.Can anybody help me with a macro.
I tried deleting them by recognising the color (32896) but i couldnot succeed

regards,
VisySolidworksApi macros