code: @Override
      public void delete(Object entity, Object pKey)
      {
          s = getStatelessSession();
          Transaction tx = null;
          tx = onBegin();
          s.delete(entity);
          onCommit(tx);
  
          EntityMetadata metadata = KunderaMetadataManager.getEntityMetadata(kunderaMetadata, entity.getClass());
          MetamodelImpl metamodel = (MetamodelImpl) KunderaMetadataManager.getMetamodel(kunderaMetadata,
                  metadata.getPersistenceUnit());
          if (!MetadataUtils.useSecondryIndex(getClientMetadata()))
          {
              getIndexManager().remove(metadata, entity, pKey);
          }
      }
docs: /*
  (non-Javadoc)
  
  @see com.impetus.kundera.client.Client#delete(java.lang.Object,
  java.lang.Object)