Update failed because of wrong installation?

I guess I see the folder ‘grafana’ because I followed this installation guide.

Anyway, since you want to start over, try to :

Uninstall just grafana:

apt-get remove grafana

or

Uninstall grafana and its dependencies:

sudo apt-get remove --auto-remove grafana

reference
Hope it helps