After removing the text from the XML does not remove the styles that were created during the printing process. This leads to an increase in the volume of unnecessary files
Unused styles are deleted when you call DeleteUnusedStyles method.
RichViewActions call it when document is loaded (but do not call when it is saved, because DeleteUnusedStyles clears undo buffer)