Curl command to delete kibana visualizations


(Raji Sankaran) #1

I am using elastic APIs to add visualizations in kibana. For example,

curl -XPUT -H "Content-Type: {application/json}" http://localhost:9200/.kibana/visualization/Network-Bandwidth -d “@file

I am able to add the visualization successfully. There is a requirement for deleting the visualizations after a certain period. Is there a curl command for deleting the visualization?


(Raji Sankaran) #2

Found the solution. Was as simple as,

curl -v -XDELETE http://localhost:9200/.kibana/visualization/70a47480-9824-11e7-ad58-9fe4e657c13e.


(Mujtaba Hussain) #3

That's the beauty of having a RESTful interface :slight_smile:


(system) #4

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