How would I go about breaking all external references on all of my parts?

I'm looking to see if there is a function within Solidworks or #Task that will allow me to break all external refs for a bunch of parts. Right now that's the easiest way that I can find to unlink all custom properties so they can be edited in batches by #Task.

Thank you!

SolidworksApi/macros