I have not come across one but the following should help:
Snapd
Snap generally preserves at least three revisions (older versions) of any software / package you have installed at any point of time. This makes snapd/cache very bulky. You can set to 1 or 2 using
sudo snap set system refresh.retain=2 // starting from snapd version 2.34
This way you preserver lot of space. Now, clearing the cached installation
sudo rm -rf /var/cache/snapd
flatpak
The analogous process of sudo apt autoremove in flatpak is
flatpak uninstall --unused