# How to list all index patterns using DevTools

**URL:** <https://discuss.elastic.co/t/how-to-list-all-index-patterns-using-devtools/295725>\
**Category:** Kibana\
**Created:** [January 28, 2022, 5:11pm UTC](https://discuss.elastic.co/t/how-to-list-all-index-patterns-using-devtools/295725 "2022-01-28T17:11:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohsin106](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohsin106/32/65203_2.png) [@mohsin106](https://discuss.elastic.co/u/mohsin106)\
**Post date:** [January 28, 2022, 5:11pm UTC](https://discuss.elastic.co/t/how-to-list-all-index-patterns-using-devtools/295725/1 "2022-01-28T17:11:55Z")

</div>

Hi,

Is there a GET command that I can run in Kibana's dev tools console that will list all my index patterns and their IDs? I'm trying to delete some index patterns but I believe I need to delete them by ID.

I'm trying to do something like this in the dev tools console:  
`GET api/index_patterns/index_pattern/lab-aar-bgp-*`

But this prints an error:

```auto
{
  "error" : "no handler found for uri [/api/index_patterns/index_pattern/lab-aar-bgp-*?pretty=true] and method [GET]"
}

```

I can delete the index pattern from the GUI but I would like to do it from the dev tools console.

Thank you.

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [January 28, 2022, 5:15pm UTC](https://discuss.elastic.co/t/how-to-list-all-index-patterns-using-devtools/295725/2 "2022-01-28T17:15:36Z")

</div>

There is not, the Dev tools is to interact with Elasticsearch only, to use the Kibana APIs you would need to make the request directly to Kibana.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 25, 2022, 5:16pm UTC](https://discuss.elastic.co/t/how-to-list-all-index-patterns-using-devtools/295725/3 "2022-02-25T17:16:15Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
