private void executeDeleteDatasetStatement(PreparedStatement statement, int accountId, int containerId,
      String datasetName) throws AccountServiceException, SQLException {
    statement.setInt(1, accountId);
    statement.setInt(2, containerId);
    statement.setString(3, datasetName);
    int count = statement.executeUpdate();
    if (count <= 0) {
      throw new AccountServiceException(
          "Dataset not found qualified record to delete for account: " + accountId + " container: " + containerId
              + " dataset: " + datasetName, AccountServiceErrorCode.NotFound);
    }
  }
Execute deleteDatasetStatement to delete Dataset.
@param statement the mysql statement to delete dataset.
@param accountId the id for the parent account.
@param containerId the id of the container.
@param datasetName the name of the dataset.
ambry-account/src/main/java/com/github/ambry/account/mysql/DatasetDao.java