Is there an automated way to clean up stale folders under /usr/share?

I am doing a version upgrade on a system that has limited space on / and it ran out of it.
To solve that, I removed some unnecessary packages, such as festival for example.
After that I checked folder sizes and found that /usr/share/festival still exists. There are more such stale folders leftover from removed packages.
Do I have to chase them manually or is there a way to purge them in organized, controlled manner?

Hello, @hsljo

try these commands:

Utilize the dnf autoremove command

sudo dnf autoremove

Utilize the find command to locate orphan directories:

sudo find / -xdev -type d -name festival\* 2>/dev/null

Manually remove orphan directories:

sudo rm -rf /usr/share/festival

And the last command to view full directories:

sudo dnf install ncdu

sudo ncdu /

That’s manual because I would need to know that festival left its directory behind. That’s what I am looking to avoid.