public void delete ( URI src ) { Path dst = null ; try { dst = paths . get ( src ) ; } catch ( ExecutionException e ) { throw new RuntimeException ( e ) ; } try { Files . deleteIfExists ( dst ) ; paths . invalidate ( src ) ; } catch ( IOException e ) { String msg = String . format ( "Failed to delete %s -> %s" , src , dst ) ; LOG . error ( msg , e ) ; } }
Delete a single downloaded local file .