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 ) ; } }
Deletes the Ledger with given LedgerId .