code: public void delete(Object entity) {
      try {
        entityManager.executeEntityListeners(CallbackType.PRE_DELETE, entity);
        Key nativeKey = Marshaller.marshalKey(entityManager, entity);
        nativeWriter.delete(nativeKey);
        entityManager.executeEntityListeners(CallbackType.POST_DELETE, entity);
      } catch (DatastoreException exp) {
        throw DatastoreUtils.wrap(exp);
      }
    }
docs: Deletes the given entity from the Cloud Datastore.
  
  @param entity
  the entity to delete. The entity must have it ID set for the deletion to succeed.
  @throws EntityManagerException
  if any error occurs while deleting.