Delete dangling dimensions

I need a procedure to delete all dangling dimensions in all the views of an active drawing.

SolidworksApi macros