# GrapeCity.Documents.Excel.Drawing.IChartBars.Delete

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Excel_Drawing_IChartBars_Delete_" data-uid="GrapeCity.Documents.Excel.Drawing.IChartBars.Delete*">Delete Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Excel_Drawing_IChartBars_Delete_" data-uid="GrapeCity.Documents.Excel.Drawing.IChartBars.Delete*"></a>
<h4 id="GrapeCity_Documents_Excel_Drawing_IChartBars_Delete" data-uid="GrapeCity.Documents.Excel.Drawing.IChartBars.Delete">Delete()</h4>
<div class="markdown level1 summary"><p>Deletes this chart bars object.</p>
<p>
Use this method on an <a class="xref" href="GrapeCity.Documents.Excel.Drawing.IChartBars.html">IChartBars</a> instance returned by
<a class="xref" href="GrapeCity.Documents.Excel.Drawing.IChartGroup.UpBars.html#GrapeCity_Documents_Excel_Drawing_IChartGroup_UpBars">UpBars</a> or <a class="xref" href="GrapeCity.Documents.Excel.Drawing.IChartGroup.DownBars.html#GrapeCity_Documents_Excel_Drawing_IChartGroup_DownBars">DownBars</a>.
</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void Delete()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub Delete()</code></pre>
</div>
<h5 id="GrapeCity_Documents_Excel_Drawing_IChartBars_Delete_examples">Examples</h5>
<pre><code class="lang-csharp">worksheet.Range["A1:C4"].Value = new object[,] {
    {"Month", "Sales 2023", "Sales 2024"},
    {"Jan", 12, 18},
    {"Feb", 20, 15},
    {"Mar", 16, 22}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.Line, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:C4"], RowCol.Columns, true, true);
IChartGroup chartGroup = chart.ChartGroups[0];
chartGroup.HasUpDownBars = true;
chartGroup.UpBars.Delete();</code></pre>

</div>
