I used sudo apt-get purge [package_name]andsudo apt-get autoremove --purgeto remove an application so that on reinstalling it gets back to default configuration. But it didn't work, all previous modified configuration were still there.On searching I found a dir in /root/.[package_name]. Does apt-get purge remove config files stored in user home dir? If not then how to remove them?
Does apt-get purge remove config files stored in user home dir?
apt
No, it only removes  shared configuration files, like those in the /etc directory.That's because only those are installed with the package by dpkg(part of the archive). The ones in the home folders of the users are usually created at runtime by the application(eg. wine creating the initial WINEPREFIX).