Delete/Reject all table revisions in a word document

Hi Team,

I want to delete or ignore the revisions in a table in the word document which contains other revision types as well like Insertion/Deletion/Format Change.
How to achieve Ignoring Table Revisions and proceed with Insertion/Deletion and Formatchange revisions?
Out of 11 revisions in the attached document, I want to ignore all the table related revisions and show only 7 other revisions.Sample.docx (15.2 KB)

@sureshkap You can use code like the following to reject revisions made in the table:

Document doc = new Document(@"C:\Temp\Sample.docx");

List<Revision> revisionsToRegect = doc.Revisions.Where(r=> r.ParentNode.GetAncestor(NodeType.Table) != null).ToList();

foreach (Revision r in revisionsToRegect)
    r.Reject();

doc.Save(@"C:\Temp\out.docx");