Remove the repeating title in Table of Content

hi, I am updating the table of content with page numbers using doc.UpdateFields(), but as an output the Title Table of content is repeated in the same page. How can I get rid of that in C#
TOC.PNG (9.1 KB)

@kiran5388 Most likely table of contents title paragraph has Heading style and that is why it is included into the TOC. You can consider building TOC using TC fields to avoid unwanted entries in the TOC. Please see the following articles to learn more about TOC field codes and TC field codes.