apt-get autoremove will leave "recommended" and "suggested" packages behind. The logic is a bit puzzling, it goes like "maybe some other package is using them" (without registering anything about it in APT).
But, following the same logic, APT could as well flatly refuse to uninstall anything because, you never know.
Anyway, you can remove all "recommended" and "suggested" packages on your system in a single command, without having to modify the configuration:
sudo apt-get autoremove -o APT::Autoremove::RecommendsImportant=0 -o APT::Autoremove::SuggestsImportant=0
However be warned. I did this on my system, it freed up a lot of space, however I had to manually reinstall some packages to regain lost functionality, such as being able to mount FAT partitions, for example. (exfat-fuse was an optional/suggested dependency of fuse, if I remember well). I ended up reinstalling all the recommended/suggested packages to save myself the trouble.
I don't know of any easy way to specify that you would want the optional/suggested dependencies of particular packages uninstalled.
apt-get does not offer such option.
Other package managers might be better at this. Some package managers (DNF) have a "transactional" approach to package management, which means you can roll-back to a previous point.