Remove Unwanted/Unused Dependencies in FreeBSD package

Originally published at:

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?