This procedure describes how to remove an SMB share. When you remove an SMB share, the definition of the share is removed from the server. You can re-create the share with the
This procedure shows how to use the
zfs command to remove a share, but you can also use the
unshare command for other file system types. See the
unshare(8) man page.
- Become an administrator.
For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.4.
- Remove an SMB share.
$ zfs destroy pool/dataset%share-name
For example, the following command removes the
sales_share1share from the
$ zfs destroy tank/sales%share_sales1