# C1.LiveLinq.Indexing.IndexCollection-1.Remove

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_LiveLinq_Indexing_IndexCollection_1_Remove_" data-uid="C1.LiveLinq.Indexing.IndexCollection`1.Remove*">Remove Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_LiveLinq_Indexing_IndexCollection_1_Remove_" data-uid="C1.LiveLinq.Indexing.IndexCollection`1.Remove*"></a>
<h4 id="C1_LiveLinq_Indexing_IndexCollection_1_Remove_System_Linq_Expressions_LambdaExpression_" data-uid="C1.LiveLinq.Indexing.IndexCollection`1.Remove(System.Linq.Expressions.LambdaExpression)">Remove(LambdaExpression)</h4>
<div class="markdown level1 summary"><p>Removes an index from the collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public override bool Remove(LambdaExpression keySelector)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overrides Function Remove(keySelector As LambdaExpression) 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.linq.expressions.lambdaexpression">LambdaExpression</a></td>
      <td><span class="parametername">keySelector</span></td>
      <td><p>Key selector expression of an index, see <a class="xref" href="C1.LiveLinq.Indexing.IndexDefinition-1.KeySelector.html#C1_LiveLinq_Indexing_IndexDefinition_1_KeySelector">KeySelector</a>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</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><p><b>true</b> if an index has been removed; <b>false</b> if there is no index with the given key selector in the collection.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="C1.LiveLinq.Indexing.ScannerCollection-1.Remove.html#C1_LiveLinq_Indexing_ScannerCollection_1_Remove_System_Linq_Expressions_LambdaExpression_">ScannerCollection&lt;T&gt;.Remove(LambdaExpression)</a></div>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.idictionary-2.remove">IDictionary&lt;TKey, TValue&gt;.Remove(TKey)</a></div>


<a id="C1_LiveLinq_Indexing_IndexCollection_1_Remove_" data-uid="C1.LiveLinq.Indexing.IndexCollection`1.Remove*"></a>
<h4 id="C1_LiveLinq_Indexing_IndexCollection_1_Remove_C1_LiveLinq_Indexing_Index__0__" data-uid="C1.LiveLinq.Indexing.IndexCollection`1.Remove(C1.LiveLinq.Indexing.Index{`0})">Remove(Index&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>Removes an index from the collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool Remove(Index&lt;T&gt; index)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Remove(index As Index(Of T)) 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="C1.LiveLinq.Indexing.Index-1.html">Index</a>&lt;T&gt;</td>
      <td><span class="parametername">index</span></td>
      <td><p>The index to remove.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</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><p><b>true</b> if an index has been removed; <b>false</b> if the index does not belong to this collection.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
