Delete all the Dangling Dimensions

I want to delete all the dangling dimensions from all views, all sheets of a drawing file.

Is it possible to have a macro for this situation?

As I'm new to API, I didn't know that much about how to Traverse view, getting all annotations associated with that views, examining each annotation to see if it is a dimension and/or dangling.

Ton of Thanks in Advance!

SolidworksApi macros