How do you avoid unnecessary directories after removing a package? - eviltoast

This is ultimately not very productive, but I’ve had free time lately for obvious worldly reasons.

I feel as if I’m missing something obvious, but is there any way to completely remove a package and its directories through pacman without running

rm -rf /path/to/directory]

manually after

pacman -Rs package_name

and hoping you get everything?

Otherwise, my best solution so far has been to run

tree 

with options where I can browse through my directories and check file-by-file.

I’ve unintentionally developed a neurosis where I want my system as clean as possible since I’ve put enough time into it. Which may be dumb, but yeah.