To unshare all the shared resources on your system or all the shared
resources of a specified file system type, use the unshareall
unshareall [-F fsys[,fsys ... ]]
When you specify a file system type, the command unshares all local resources of the distributed file system type you specified. If no -F option is specified, then the command unshares all local resources currently shared.
See the shareall(1M) manual page for an explanation of the options accepted by the unshareall command.