code: def delete(self, entity):
      
      key = _normalize_key(entity)
      if key is None:
        return self.ndb_delete(entity)
      self.deletes.append(key)
docs: Registers entity to delete from datastore.
  
      Args:
        entity: an entity, model instance, or key to delete.