# GrapeCity.Documents.Word.Comment.Delete

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Word_Comment_Delete_" data-uid="GrapeCity.Documents.Word.Comment.Delete*">Delete Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Word_Comment_Delete_" data-uid="GrapeCity.Documents.Word.Comment.Delete*"></a>
<h4 id="GrapeCity_Documents_Word_Comment_Delete" data-uid="GrapeCity.Documents.Word.Comment.Delete">Delete()</h4>
<div class="markdown level1 summary"><p>Deletes this comment from the parent <a class="xref" href="GrapeCity.Documents.Word.Comment.Body.html#GrapeCity_Documents_Word_Comment_Body">Body</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public override void Delete()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overrides Sub Delete()</code></pre>
</div>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="GrapeCity.Documents.Word.ContentRange.Delete.html#GrapeCity_Documents_Word_ContentRange_Delete">ContentRange.Delete()</a></div>


<a id="GrapeCity_Documents_Word_Comment_Delete_" data-uid="GrapeCity.Documents.Word.Comment.Delete*"></a>
<h4 id="GrapeCity_Documents_Word_Comment_Delete_System_Boolean_" data-uid="GrapeCity.Documents.Word.Comment.Delete(System.Boolean)">Delete(bool)</h4>
<div class="markdown level1 summary"><p>Deletes this comment and optionally all replies associated with it from the parent <a class="xref" href="GrapeCity.Documents.Word.Comment.Body.html#GrapeCity_Documents_Word_Comment_Body">Body</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Delete(bool includeReplies)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Delete(includeReplies As Boolean)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">includeReplies</span></td>
      <td><p>Indicates whether to delete all replies associated with this comment.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
