# xarray.DataArray.drop_indexes

#### DataArray.drop_indexes(coord_names, , errors='raise')[[source]](https://github.com/pydata/xarray/blob/v2026.09.0/xarray/core/dataarray.py#L3386-L3409)

Drop the indexes assigned to the given coordinates.

* **Parameters:**
  * **coord_names** ([hashable](../user-guide/terminology.html.md#term-name) or [iterable](https://docs.python.org/3/glossary.html#term-iterable) of [hashable](../user-guide/terminology.html.md#term-name)) – Name(s) of the coordinate(s) for which to drop the index.
  * **errors** (`{"raise", "ignore"}`, *default*: `"raise"`) – If ‘raise’, raises a ValueError error if any of the coordinates
    passed have no index or are not in the dataset.
    If ‘ignore’, no error is raised.
* **Returns:**
  **dropped** ([`DataArray`](xarray.DataArray.html.md#xarray.DataArray)) – A new dataarray with dropped indexes.
