# xarray.CFTimeIndex.drop

#### CFTimeIndex.drop(labels, errors='raise')[[source]](https://github.com/pydata/xarray/blob/main/xarray/../.pixi/envs/doc/lib/python3.14/site-packages/pandas/core/indexes/base.py#L7222-L7270)

Make new Index with passed list of labels deleted.

* **Parameters:**
  * **labels** ([array-like](https://numpy.org/doc/stable/glossary.html#term-array_like) or [scalar](../user-guide/terminology.html.md#term-scalar)) – Array-like object or a scalar value, representing the labels to be removed
    from the Index.
  * **errors** (`{'ignore', 'raise'}`, *default* `'raise'`) – If ‘ignore’, suppress error and existing labels are dropped.
* **Returns:**
  [`Index`](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Index.html#pandas.Index) – Will be same type as self, except for RangeIndex.
* **Raises:**
  [**KeyError**](https://docs.python.org/3/builtins/exceptions.html#KeyError) – If not all of the labels are found in the selected axis

#### SEE ALSO
`Index.dropna`
: Return Index without NA/NaN values.

`Index.drop_duplicates`
: Return Index with duplicate values removed.

### Examples

<div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesShowIframe('e6f57c4b-8580-488d-a42f-d6e12295d523','253618c5-d1db-4b99-87ab-b8e5a47c5798','2961b868-0a41-4e7f-8a2a-f9897f98a11e','../lite/tree/../notebooks/index.html?path=ced02227_4d6b_4b5e_bd03_c989569f7e58.ipynb','None')">Try it in your browser!</button></div>
```pycon
>>> idx = pd.Index(["a", "b", "c"])
>>> idx.drop(["a"])
Index(['b', 'c'], dtype='str')
```

<div id="2961b868-0a41-4e7f-8a2a-f9897f98a11e" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('e6f57c4b-8580-488d-a42f-d6e12295d523','2961b868-0a41-4e7f-8a2a-f9897f98a11e')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('e6f57c4b-8580-488d-a42f-d6e12295d523','2961b868-0a41-4e7f-8a2a-f9897f98a11e')">Open In Tab</button></div><div id="253618c5-d1db-4b99-87ab-b8e5a47c5798" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
