code: static void delete(long ledgerId, BookKeeper bookKeeper) throws DurableDataLogException {
          try {
              Exceptions.handleInterrupted(() -> bookKeeper.deleteLedger(ledgerId));
          } catch (BKException bkEx) {
              throw new DurableDataLogException(String.format("Unable to delete Ledger %d.", ledgerId), bkEx);
          }
      }
docs: Deletes the Ledger with given LedgerId.
  
  @param ledgerId   The Id of the Ledger to delete.
  @param bookKeeper A reference to the BookKeeper client to use.
  @throws DurableDataLogException If an exception occurred. The causing exception is wrapped inside it.