Purges the document of all unused named references (blocks, layers, table, etc) objects.
Syntax
object.PurgeAll
Where:
object is a Document object.