How to delete all Xref objects with maxscript
For o in objects where classof o == XrefObject do delete o
Thank you DaveWortley