code: def remove_pool(arg, opts, shell_opts):
      
  
      remove_confirmed = shell_opts.force
  
      res = Pool.list({ 'name': arg })
      if len(res) < 1:
          print("No pool with name '%s' found." % arg, file=sys.stderr)
          sys.exit(1)
  
      p = res[0]
  
      if not remove_confirmed:
          res = input("Do you really want to remove the pool '%s'? [y/N]: " % p.name)
  
          if res == 'y':
              remove_confirmed = True
          else:
              print("Operation canceled.")
  
      if remove_confirmed:
          p.remove()
          print("Pool '%s' removed." % p.name)
docs: Remove pool