System Administration Guide: Network Services

delete Subcommand

This subcommand removes a share group. Before using this option, use the remove-share subcommand to delete all shares from the group. Alternately, use the -f option with this subcommand to force the removal of a group that might still contain shares. The -f option unshares and removes all shares from the share group, so the share group can be removed.

To remove a protocol from a share group, use the -P option. Note that when using the -P option, the share group is not removed. Only the protocol is removed from the group.

This subcommand supports the following options:


Checks the validity of command-line string


Forces a share group to be removed


Specifies a file-system type to be removed from the group


Provides an online-help description

This subcommand uses the following syntax:

# sharemgr delete [-h] [-n] [-f] [-P protocol] share_group