The uninstall process should ask if you want that stuff left alone or not. Sometimes you are reinstalling because you messed up a config or cache and don’t know how to clear it. This is a major way Linux could become more like Windows in a good way. When you uninstall something from Windows is very program specific but 99% of the time now, it asks if you want to remove user data.