Originally published at: https://www.cyberciti.biz/faq/how-to-remove-unwantedunused-dependencies-in-freebsd-pkg-command/
I deleted a package using the ‘pkg remove foo’ command. However, it left over 30+ dependencies. Theses dependencies not needed by any other package on a FreeBSD Unix system and just taking space on my hard drive. How do I remove unwanted or unused dependencies in FreeBSD 11.x server?