I assume the below command does the following (please correct me if I am wrong):
I want to remove the package nginx and the related configuration files. I also want to remove any related package dependencies (that are not used by any other package on the system)
sudo apt autoremove --purge nginx
Does it also remove the configuration files for the related package(s) (dependencies) that are removed from the system?