Can't Delete Dashboard

Hi,

I managed to miscode some javascript in a panel on a test dashboard and now as soon as you click on the dashboard it loads an iframe as a new page replacing the grafana. Clicking back just reloads the iframe again.

There doesn’t seem to be anyway to delete the dashboard from the list of dashboards.

Any help on how to remove this dashboard would be greatly appreciated.

Thanks
Craig

You could do it via the api or via the database or if you are on 5.0 beta then you can do it via the new Manage Dashboards page.

With the API:

http://docs.grafana.org/http_api/dashboard/#delete-dashboard

curl -X DELETE -H "Authorization: Bearer eyJrIXXXXXXX" http://grafana.staged-by-discourse.com/api/dashboards/db/your-dashboard-slug

or with user admin and password admin:

curl -X DELETE http://admin:admin@community.grafana.com/api/dashboards/db/your-dashboard-slug

Hi,

Just wanted to say thanks for your help.

Sorted now.

Regards
Craig

1 Like

Is it possible to delete the dashboard using PHP cURL? A “DELETE” CURLOPT_CUSTOMREQUEST gives me a 404 status code.