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 .