code: @Override
      public void delete(Object entity, Object pKey)
      {
          if (!isOpen())
          {
              throw new PersistenceException("PelopsClient is closed.");
          }
          EntityMetadata metadata = KunderaMetadataManager.getEntityMetadata(kunderaMetadata, entity.getClass());
  
          MetamodelImpl metaModel = (MetamodelImpl) kunderaMetadata.getApplicationMetadata().getMetamodel(
                  metadata.getPersistenceUnit());
          AbstractManagedType managedType = (AbstractManagedType) metaModel.entity(metadata.getEntityClazz());
          // For secondary tables.
          List<String> secondaryTables = ((DefaultEntityAnnotationProcessor) managedType.getEntityAnnotation())
                  .getSecondaryTablesName();
          secondaryTables.add(metadata.getTableName());
  
          for (String tableName : secondaryTables)
          {
              if (isCql3Enabled(metadata))
              {
                  String deleteQuery = onDeleteQuery(metadata, tableName, metaModel, pKey);
                  executeCQLQuery(deleteQuery, isCql3Enabled(metadata));
              }
              else
              {
                  if (metadata.isCounterColumnType())
                  {
                      deleteRecordFromCounterColumnFamily(pKey, tableName, metadata, getConsistencyLevel());
                  }
                  else
                  {
                      RowDeletor rowDeletor = clientFactory.getRowDeletor(pool);
                      rowDeletor.deleteRow(tableName, Bytes.fromByteBuffer(CassandraUtilities.toBytes(pKey, metadata
                              .getIdAttribute().getJavaType())), getConsistencyLevel());
  
                  }
              }
          }
          getIndexManager().remove(metadata, entity, pKey);
  
          // Delete from Inverted Index if applicable
          Object conn = getConnection();
          try
          {
              invertedIndexHandler.delete(entity, metadata, getConsistencyLevel(), kunderaMetadata);
          }
          finally
          {
              if (conn != null)
              {
                  releaseConnection(conn);
              }
          }
      }
docs: /*
  (non-Javadoc)
  
  @see
  com.impetus.client.cassandra.CassandraClientBase#delete(java.lang.Object,
  java.lang.Object)