0

I am trying to delete grafana dashboard using curl command, but it is not deleting, the below curl command I tried to delete the dashboard,

curl -XPOST -d '{"name":"mydashboard"}' http://localhost:3000/api/dashboards/db -u admin:admin -H "Content-Type: application/json"
FL3SH
  • 2,996
  • 1
  • 17
  • 25
sivanesan1
  • 779
  • 4
  • 20
  • 44

1 Answers1

1

Run the below command,

curl -k -X DELETE -u admin:admin http://localhost:3000/api/dashboards/db/dashboardslug_name

where dashboardslug_name is the name while save the dashboard and not the dashboard title displaying in the web url.

DuDa
  • 3,718
  • 4
  • 16
  • 36
sivanesan1
  • 779
  • 4
  • 20
  • 44