It appears that ThisDrawing.PurgeAll doesn't work for table styles, but it works from the AutoCAD command version. Is there a way to iterate them and delete? - Ted WD Partners