Delete reports easily

Hello,
How to delete reports ?
Do we have to use elasticsearch delete document into .opendistro-reports-instances?

Is it possible to add a button to make deletion on Kibana UI ?

Thanks in advance !
Thi

2 Likes

same for me not sure how to delete the report from the kibana UI

anyone has idea to delete the report thorugh CLI or GUI

This is still an issue; any progress? Any ideas how to easily delete?

Hi, I am into the same situation. How to delete the generated reports and saved searches from UI.

Thanks
H

Hello,
I’m also in the same situation. How I can delete the generated reports? It’s possible to find these reports in some operating system folder?

Regards,
Lino

There is a kinda hacky way to delete reports.
Reports get saved to a hidden index called “.opendistro-reports-instances”. A single report is represented by a single document in this index.

The following query would delete all currently existing reports (use with caution!) and by changing the query to match only your reports you could delete specific ones.

POST .opendistro-reports-instances/_delete_by_query
{
    "query": {
        "match_all": {}
    }
}

The code above can be executed in the DevTools > Console menu or be called using curl as well.

I hope this helps :slight_smile:

I have an error :frowning:

{
  "error": {
    "root_cause": [
      {
        "type": "security_exception",
        "reason": "no permissions for [] and User [name=admin, backend_roles=[admin], requestedTenant=null]"
      }
    ],
    "type": "security_exception",
    "reason": "no permissions for [] and User [name=admin, backend_roles=[admin], requestedTenant=null]"
  },
  "status": 403
}

How can we list all reports in console?