original_docstring: Deletes the entities associated with the given keys.
  
      Args:
        raw_keys: A list of unverified entity_pb.Reference objects.
        cost: Out param. The cost of putting the provided entities.
        transaction: The datastore_pb.Transaction to use or None.
        trusted: If the calling app is trusted.
        calling_app: The app requesting the results or None to pull the app from
          the environment.
      
docstring: Deletes the entities associated with the given keys.
docstring_tokens: Deletes the entities associated with the given keys .
code: def Delete(self, raw_keys, cost, transaction=None,
               trusted=False, calling_app=None):
      """Deletes the entities associated with the given keys.
  
      Args:
        raw_keys: A list of unverified entity_pb.Reference objects.
        cost: Out param. The cost of putting the provided entities.
        transaction: The datastore_pb.Transaction to use or None.
        trusted: If the calling app is trusted.
        calling_app: The app requesting the results or None to pull the app from
          the environment.
      """
      if not raw_keys:
        return
  
      calling_app = datastore_types.ResolveAppId(calling_app)
  
  
      grouped_keys = collections.defaultdict(list)
      for key in raw_keys:
        CheckReference(trusted, calling_app, key)
        entity_group = _GetEntityGroup(key)
        entity_group_key = datastore_types.ReferenceToKeyValue(entity_group)
        grouped_keys[entity_group_key].append(key)
  
      if transaction:
  
        txn = self.GetTxn(transaction, trusted, calling_app)
        for key in raw_keys:
  
          indexes = _FilterIndexesByKind(key, self.GetIndexes(
              key.app(), trusted, calling_app))
          txn.Delete(key, indexes)
      else:
  
        for keys in grouped_keys.itervalues():
  
          txn_cost = self._RunInTxn(
              keys, keys[0].app(),
              lambda txn, key: txn.Delete(key, _FilterIndexesByKind(
                  key, self.GetIndexes(key.app(), trusted, calling_app))))
          _UpdateCost(cost, txn_cost.entity_writes(), txn_cost.index_writes())
code_tokens: def Delete ( self , raw_keys , cost , transaction = None , trusted = False , calling_app = None ) : if not raw_keys : return calling_app = datastore_types . ResolveAppId ( calling_app ) grouped_keys = collections . defaultdict ( list ) for key in raw_keys : CheckReference ( trusted , calling_app , key ) entity_group = _GetEntityGroup ( key ) entity_group_key = datastore_types . ReferenceToKeyValue ( entity_group ) grouped_keys [ entity_group_key ] . append ( key ) if transaction : txn = self . GetTxn ( transaction , trusted , calling_app ) for key in raw_keys : indexes = _FilterIndexesByKind ( key , self . GetIndexes ( key . app ( ) , trusted , calling_app ) ) txn . Delete ( key , indexes ) else : for keys in grouped_keys . itervalues ( ) : txn_cost = self . _RunInTxn ( keys , keys [ 0 ] . app ( ) , lambda txn , key : txn . Delete ( key , _FilterIndexesByKind ( key , self . GetIndexes ( key . app ( ) , trusted , calling_app ) ) ) ) _UpdateCost ( cost , txn_cost . entity_writes ( ) , txn_cost . index_writes ( ) )
short_docstring: Deletes the entities associated with the given keys.
short_docstring_tokens: Deletes the entities associated with the given keys .
comment: """Deletes the entities associated with the given keys.
  
      Args:
        raw_keys: A list of unverified entity_pb.Reference objects.
        cost: Out param. The cost of putting the provided entities.
        transaction: The datastore_pb.Transaction to use or None.
        trusted: If the calling app is trusted.
        calling_app: The app requesting the results or None to pull the app from
          the environment.
      """