Deleted Organization - How to recover

By accident I’ve deleted all organizations in the web UI, now the admin panel and dashboards are all gone. How can I recover?

Same problem here. I ended up un-installing/re installing grafana. Good thing I exported the dashboard to my PC

Well, the documentation of Grafana could be better. I now did the same.

You should be regularly backing up the grafana database (located in the data subdirectory if you are using sqlite) as it holds all the orgs and dashboards. This way if you accidentally delete anything you can easily restore it.

Just had a similar issue what I ended up doing was to manually log into grafana sqlite3 database, add manually the entries for org, org_user and modified the user org_id table.

sorry can you explain how you done this i am trying to recover several organisations that where accidentally deleted

thanks