# 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('f9876e01-8a6a-4251-9b72-5f7e2b7dd689','1ac923fb-c23c-43bd-a924-e8592918bde1','237c0486-97f4-4066-85a2-d055313b878d','../lite/tree/../notebooks/index.html?path=66a3aadc_bdd4_42c9_bcf0_1b393c1d8426.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="237c0486-97f4-4066-85a2-d055313b878d" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('f9876e01-8a6a-4251-9b72-5f7e2b7dd689','237c0486-97f4-4066-85a2-d055313b878d')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('f9876e01-8a6a-4251-9b72-5f7e2b7dd689','237c0486-97f4-4066-85a2-d055313b878d')">Open In Tab</button></div><div id="1ac923fb-c23c-43bd-a924-e8592918bde1" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
