How to remove "comments" from the document

I saw questions and posts about the track changes and revisions features of Word that ASPOSE supports. The "acceptAllRevisions" method works great for me but I also need to be able to remove the "comments" that the user has inserted as well.

Is there a way to loop through the document, find the comments and delete them?

A less "desirable" approach though probably acceptable is if there was a way to "hide" the comments. The Word user interface provides that ability.

Thanks so much for all your help.

Try this:

NodeCollection comments = doc.GetChildNodes(NoteType.Comment, true);

comments.Clear();

That works great!

You guys have a great product and your support for it is the most responsive I have ever seen.

Thanks again.