code: def leave_swarm(force=bool):
      '''
      Force the minion to leave the swarm
  
      force
          Will force the minion/worker/manager to leave the swarm
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' swarm.leave_swarm force=False
      '''
      salt_return = {}
      __context__['client'].swarm.leave(force=force)
      output = __context__['server_name'] + ' has left the swarm'
      salt_return.update({'Comment': output})
      return salt_returf leave_swarm(force=bool):
      '''
      Force the minion to leave the swarm
  
      force
          Will force the minion/worker/manager to leave the swarm
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' swarm.leave_swarm force=False
      '''
      salt_return = {}
      __context__['client'].swarm.leave(force=force)
      output = __context__['server_name'] + ' has left the swarm'
      salt_return.update({'Comment': output})
      return salt_return
docs: Force the minion to leave the swarm
  
      force
          Will force the minion/worker/manager to leave the swarm
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' swarm.leave_swarm force=False