private void deleteVersion(final Future<Void> aFuture) {
        if (LOGGER.isDebugEnabled()) {
            LOGGER.debug(MessageCodes.PT_DEBUG_006, myPath);
        }

        myFileSystem.delete(getVersionFilePath(), result -> {
            if (result.succeeded()) {
                if (hasPrefix()) {
                    deletePrefix(aFuture);
                } else {
                    aFuture.complete();
                }
            } else {
                aFuture.fail(result.cause());
            }
        });
    }
private void deleteVersion ( final Future < Void > aFuture ) { if ( LOGGER . isDebugEnabled ( ) ) { LOGGER . debug ( MessageCodes . PT_DEBUG_006 , myPath ) ; } myFileSystem . delete ( getVersionFilePath ( ) , result -> { if ( result . succeeded ( ) ) { if ( hasPrefix ( ) ) { deletePrefix ( aFuture ) ; } else { aFuture . complete ( ) ; } } else { aFuture . fail ( result . cause ( ) ) ; } } ) ; }
Deletes a Pairtree version file.

@param aFuture The result of an action that may, or may not, have occurred yet.