Best way to purge saved objects not being used by dashboards?

Whats the best way to purge saved objects such as saved searches and visualizations that are not being used by a dashboard?

I have a bunch of beats dashboards and I am not currently utilizing all of them..

@Matt_Vasquez there's no automated way or built-in way to do this.

if you feel adventurous, you could write a script that queries the objects in the internal .kibana index.

http://localhost:9200/.kibana/_search

for all the ones where type: visualization and type: dashboard. Remove from that .kibana-index all the visualizations, that are not present in the panelJson of the dashboard object.

YMMV :wink:

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