Delete Kibana data with cURL

Is there a curl command to delete all Kibana visualizations and dashboards?

Maybe something like
curl -XDELETE http://localhost:5601/kibana-int/dashboard/*
?

I am using ELK v 6.3.0.

Hi,
If you don't care about any of your data, you could probably use

curl -XDELETE ELASTICSEARCHIP:9200/*

will delete EVERYTHING.

Cheers
Rashmi

Thanks, rashmi.

I was under the impression that Kibana stored its own copy of the visualization and dashboard information outside of elastic search. Is that not true?

Best,
Matt

Hi,

It stores most of it in ES, in the .kibana index. This amazing blog post provides more insights: https://www.elastic.co/blog/kibana-under-the-hood-object-persistence

Also if you are only interested in deleting the dashboards and visualizations - you may want to use deleteByQuery with terms on type vis, dashboar on .kibana.

Cheers
Rashmi

Thank you so much! I'll try that immediately!

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