code: def delete(gandi, resource, force, background):
      
      output_keys = ['name', 'paas_id', 'state', 'date_creation']
      if not force:
          proceed = click.confirm('Are you sure to delete vhost %s?' %
                                  resource)
  
          if not proceed:
              return
  
      opers = gandi.vhost.delete(resource, background)
      if background:
          for oper in opers:
              output_generic(gandi, oper, output_keys)
  
      return opers
docs: Delete a vhost.