original_docstring: Remove share definition from samba server.
docstring: Remove share definition from samba server.
docstring_tokens: Remove share definition from samba server .
code: def remove_export(self, server, share_name):
          """Remove share definition from samba server."""
          try:
              self._ssh_exec(
                  server, ['sudo', 'net', 'conf', 'delshare', share_name])
          except exception.ProcessExecutionError as e:
              LOG.warning(_LW("Caught error trying delete share: %(error)s, try"
                              "ing delete it forcibly."), {'error': e.stderr})
              self._ssh_exec(server, ['sudo', 'smbcontrol', 'all', 'close-share',
                                      share_name])
code_tokens: def remove_export ( self , server , share_name ) : try : self . _ssh_exec ( server , [ 'sudo' , 'net' , 'conf' , 'delshare' , share_name ] ) except exception . ProcessExecutionError as e : LOG . warning ( _LW ( "Caught error trying delete share: %(error)s, try" "ing delete it forcibly." ) , { 'error' : e . stderr } ) self . _ssh_exec ( server , [ 'sudo' , 'smbcontrol' , 'all' , 'close-share' , share_name ] )
short_docstring: Remove share definition from samba server.
short_docstring_tokens: Remove share definition from samba server .
comment: """Remove share definition from samba server."""