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:

These are the locations that Grafana copies files to:

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

thanks daniellee . Have removed it from the server.