How can I execute two different tasks in xreferences files?

Hi gentlemen,

I’m in the process of creating a script for bind all the xref files, but after that there are files that couldn’t be bind either the route is wrong or the file doesn’t exist anymore, my question is how can I detach the resultant no binding xref files?

Thanks

Camber package has nodes that can detach xrefs
detatch_xref

Yeah but what I’m asking is how to detach just those one that wasn’t binding at first, I mean in the same script

Something like this

Thanks Mike,

I used your script to do what I was looking for.