Can't Delete Dashboard


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.


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:

curl -X DELETE -H "Authorization: Bearer eyJrIXXXXXXX" http://localhost:3000/api/dashboards/db/your-dashboard-slug

or with user admin and password admin:

curl -X DELETE http://admin:admin@localhost:3000/api/dashboards/db/your-dashboard-slug


Just wanted to say thanks for your help.

Sorted now.


1 Like

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