def GetConfirmation(self, index):
    while True:
      print 'This index is no longer defined in your index.yaml file.'
      print
      print index.ToYAML()
      print

      confirmation = self.confirmation_fn(
          'Are you sure you want to delete this index? (N/y/a): ')
      confirmation = confirmation.strip().lower()

      if confirmation == 'y':
        return True
      elif confirmation == 'n' or not confirmation:
        return False
      elif confirmation == 'a':
        self.force = True
        return True
      else:
        print 'Did not understand your response.'
Get confirmation from user to delete an index.
dataset/ETHPy150Open CollabQ/CollabQ/.google_appengine/google/appengine/tools/appcfg.py/VacuumIndexesOperation.GetConfirmation