docs: def _erase_vm_info(name):
      '''
      erase the information for a VM the we are destroying.
  
      some sdb drivers (such as the SQLite driver we expect to use)
      do not have a `delete` method, so if the delete fails, we have
      to replace the with a blank entry.
      '''
      try:
          # delete the machine record
          vm_ = get_vm_info(name)
          if vm_['machine']:
              key = _build_machine_uri(vm_['machine'], vm_.get('cwd', '.'))
              try:
                  __utils__['sdb.sdb_delete'](key, __opts__)
              except KeyError:
                  # no delete method found -- load a blank value
                  __utils__['sdb.sdb_set'](key, None, __opts__)
      except Exception:
          pass
  
      uri = _build_sdb_uri(name)
      try:
          # delete the name record
          __utils__['sdb.sdb_delete'](uri, __opts__)
      except KeyError:
          # no delete method found -- load an empty dictionary
          __utils__['sdb.sdb_set'](uri, {}, __opts__)
      except Exception:
          pass