# Can't Delete Dashboard

**URL:** <https://community.grafana.com/t/cant-delete-dashboard/5500>\
**Category:** Developers & API\
**Tags:** dashboard, api\
**Created:** [February 15, 2018, 2:24pm UTC](https://community.grafana.com/t/cant-delete-dashboard/5500 "2018-02-15T14:24:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vapour](https://avatars.discourse-cdn.com/v4/letter/v/a698b9/32.png) [@vapour](https://community.grafana.com/u/vapour)\
**Post date:** [February 15, 2018, 2:24pm UTC](https://community.grafana.com/t/cant-delete-dashboard/5500/1 "2018-02-15T14:24:58Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![daniellee](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/daniellee/32/41_2.png) [@daniellee](https://community.grafana.com/u/daniellee)\
**Post date:** [February 15, 2018, 6:18pm UTC](https://community.grafana.com/t/cant-delete-dashboard/5500/2 "2018-02-15T18:18:01Z")

</div>

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](http://docs.grafana.org/http_api/dashboard/#delete-dashboard)

```bash
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`:

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

```

---

<div class="post-metadata">

**Author:** ![vapour](https://avatars.discourse-cdn.com/v4/letter/v/a698b9/32.png) [@vapour](https://community.grafana.com/u/vapour)\
**Post date:** [February 15, 2018, 7:44pm UTC](https://community.grafana.com/t/cant-delete-dashboard/5500/3 "2018-02-15T19:44:02Z")

</div>

Hi,

Just wanted to say thanks for your help.

Sorted now.

Regards  
Craig

---

<div class="post-metadata">

**Author:** ![chrys](https://avatars.discourse-cdn.com/v4/letter/c/a88e4f/32.png) [@chrys](https://community.grafana.com/u/chrys)\
**Post date:** [September 4, 2019, 2:07pm UTC](https://community.grafana.com/t/cant-delete-dashboard/5500/4 "2019-09-04T14:07:04Z")

</div>

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