Curl command to delete kibana visualizations

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?

Found the solution. Was as simple as,

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

1 Like

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

1 Like

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