Select Links and Imports in Revit by Element ID

I’m sure this is simple, but I would like to be able to select all imports (using the Document.LinksAndImports note, and then delete them. I attached a screen capture of how I’ve built this so far, but I can’t get it to select the elements in Revit. Thanks for your help.

1-30-2015 4-35-47 PM

Hmm, I wonder if the eraser package would work…guess I will I give that a whirl.

Yep, that worked.