code: @Override
      public void delete(Object entity, Object pKey)
      {
          EntityMetadata metadata = KunderaMetadataManager.getEntityMetadata(kunderaMetadata, entity.getClass());
          MetamodelImpl metaModel = (MetamodelImpl) kunderaMetadata.getApplicationMetadata().getMetamodel(
                  metadata.getPersistenceUnit());
          AbstractManagedType managedType = (AbstractManagedType) metaModel.entity(metadata.getEntityClazz());
          List<String> secondaryTables = ((DefaultEntityAnnotationProcessor) managedType.getEntityAnnotation())
                  .getSecondaryTablesName();
          secondaryTables.add(metadata.getTableName());
          if (metaModel.isEmbeddable(metadata.getIdAttribute().getBindableJavaType()))
          {
              pKey = KunderaCoreUtils.prepareCompositeKey(metadata, pKey);
          }
  
          for (String colTableName : secondaryTables)
          {
              deleteByColumn(metadata.getSchema(), colTableName,
                      ((AbstractAttribute) metadata.getIdAttribute()).getJPAColumnName(), pKey);
          }
  
      }
docs: /*
  (non-Javadoc)
  
  @see com.impetus.kundera.client.Client#delete(java.lang.Object,
  java.lang.Object)