Package dependency question

Let’s say that I installed package A that depends on package B. After a while, package A no longer depends on package B. All the other packages also do not depend on package B. Will package B be uninstalled automatically if I run gc in the package manager?

The package will be removed from your manifest already when you Pkg.rm the last package requesting B. Pkg.gc will eventually remove also the directory of the package itself if it isn’t present in any active manifest