Can't remove a package after install it from AUR

So, I decided to install rocm-opencl-runtime to test some things and now I want to remove it.

I used yay -S rocm-opencl-runtime to install, but when I try to type yay -R rocm-opencl-runtime to remove, it says: error: target not found: rocm-opencl-runtime what do I do?

Are you sure that package is installed? Check your logs

$ grep rocm-opencl-runtime /var/log/pacman.log

If it’s installed, the package manager should know about it as well:

$ pacman -Qi rocm-opencl-runtime

In addition to the above response, there is always pamac GUI which handles AUR if enabled in preferences.