I've been trying to come up with a fast way to clean a drawing after an xref has been binded/bound.
The layers are easy.
Blocks a bit tricky.
Textstyles are stupid. The textsyle that comes with a Table is accessed through a dictionary rather than a collection.
You have to change this before you can purge the textstyle.
Now this was introduced in 2005 I think, so was the use of a dictionary another laugh for the acad coders.