Created several share name on same zfs system, here is the way to remove
root@solar:/etc/pam.d# zfs get share sp/important/movie
NAME PROPERTY VALUE SOURCE
sp/important/movie share name=none,path=/sp/important/movie,prot=smb local
sp/important/movie share name=iMovie,path=/sp/important/movie,prot=smb local
sp/important/movie share name=movie,path=/sp/important/movie,prot=smb local
root@solar:/etc/pam.d# share -F smb -A
none /sp/important/movie -
iMovie /sp/important/movie -
movie /sp/important/movie -
# -------------- DELETE --------------------
root@solar:/etc/pam.d# unshare -F smb movie
root@solar:/etc/pam.d# unshare -F smb none
root@solar:/etc/pam.d# share -F smb -A
iMovie /sp/important/movie -
root@solar:/etc/pam.d# zfs get share sp/important/movie
NAME PROPERTY VALUE SOURCE
sp/important/movie share name=iMovie,path=/sp/important/movie,prot=smb local |
root@solar:/etc/pam.d# zfs get share sp/important/movie
NAME PROPERTY VALUE SOURCE
sp/important/movie share name=none,path=/sp/important/movie,prot=smb local
sp/important/movie share name=iMovie,path=/sp/important/movie,prot=smb local
sp/important/movie share name=movie,path=/sp/important/movie,prot=smb local
root@solar:/etc/pam.d# share -F smb -A
none /sp/important/movie -
iMovie /sp/important/movie -
movie /sp/important/movie -
# -------------- DELETE --------------------
root@solar:/etc/pam.d# unshare -F smb movie
root@solar:/etc/pam.d# unshare -F smb none
root@solar:/etc/pam.d# share -F smb -A
iMovie /sp/important/movie -
root@solar:/etc/pam.d# zfs get share sp/important/movie
NAME PROPERTY VALUE SOURCE
sp/important/movie share name=iMovie,path=/sp/important/movie,prot=smb local