How to completely remove the grafana rpm packages and its dependencies

I am getting this type of error. Can anyone suggest what to do.image|690x442

To remove a rpm package you can use the erase command: http://ftp.rpm.org/max-rpm/s1-rpm-erase-erasing-package.html

These are the locations that Grafana copies files to: https://grafana.com/docs/grafana/latest/installation/rpm/#package-details

Did you follow the instructions here to install it originally? And which method did you use?

thanks daniellee . Have removed it from the server.