code: public boolean delete(final T key) {
      try (Txn<T> txn = env.txnWrite()) {
        final boolean ret = delete(txn, key);
        txn.commit();
        return ret;
      }
    }
docs: Starts a new read-write transaction and deletes the key.
  
  @param key key to delete from the database (not null)
  @return true if the key/data pair was found, false otherwise
  
  @see #delete(org.lmdbjava.Txn, java.lang.Object, java.lang.Object)