Delete Kibana data with cURL


(Matthew Barrett) #1

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.


(kulkarni) #2

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

curl -XDELETE ELASTICSEARCHIP:9200/*

will delete EVERYTHING.

Cheers
Rashmi


(Matthew Barrett) #3

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


(kulkarni) #4

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


(Matthew Barrett) #5

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


(system) #6

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