Packages will always remove their respective system-wide and vendor-provided config and data files, should they be shipped with the package. If they are not shipped with the package, then there is no way for the package manager to know such files are owned by or created by the package, and therefore config and data files generated by the package outside of its own contents (say like Firefox creating your profiles, cache, etc.) will remain. The only way to remove those files is to know they exist and deleting them manually.
In the case of removing dependencies of packages, we have an eopkg rmo
(for remove orphaned packages) command that may remove dependencies if they are not used at all. Do note that this functionality is not entirely fleshed out, so it may not always work as expected. It's generally recommended that people still use the typical eopkg rm
command. It may not always work as expected as it doesn't always account for pre-installed packages (that ship with the ISO) and eopkg's dependency graph isn't as sophisticated as we'd like (or strive to have with our future package manager, sol).