code: @Override
      public void delete(Object entity, Object pKey)
      {
          if (entity != null)
          {
              EntityMetadata metadata = KunderaMetadataManager.getEntityMetadata(kunderaMetadata, entity.getClass());
  
              MetamodelImpl metaModel = (MetamodelImpl) kunderaMetadata.getApplicationMetadata()
                      .getMetamodel(metadata.getPersistenceUnit());
  
              EntityType entityType = metaModel.entity(metadata.getEntityClazz());
  
              String keyAsString = getKeyAsString(pKey, metadata, metaModel);
  
              try
              {
                  txClient.prepareDelete(metadata.getSchema().toLowerCase(), metadata.getTableName(),
                          keyAsString.toString()/* index, type, id */).setRefresh(isRefreshIndexes()).execute().get();
              }
              catch (InterruptedException iex)
              {
                  logger.error("Error while deleting record of {}, Caused by :.", pKey, iex);
                  throw new PersistenceException(iex);
              }
              catch (ExecutionException eex)
              {
                  logger.error("Error while deleting record of {}, Caused by :.", pKey, eex);
                  throw new PersistenceException(eex);
              }
          }
  
      }
docs: /*
  (non-Javadoc)
  
  @see com.impetus.kundera.client.Client#delete(java.lang.Object,
  java.lang.Object)