A text style can be deleted using:
styleId.safeOpenObject(OdDb::kForWrite)->erase(true);
Note: "Standard" and current text styles cannot be deleted.
A text style can be deleted using:
styleId.safeOpenObject(OdDb::kForWrite)->erase(true);
Note: "Standard" and current text styles cannot be deleted.