public void deleteChannel ( FileIOChannel . ID channel ) throws IOException { if ( channel != null ) { if ( channel . getPathFile ( ) . exists ( ) && ! channel . getPathFile ( ) . delete ( ) ) { LOG . warn ( "IOManager failed to delete temporary file {}" , channel . getPath ( ) ) ; } } }
Deletes the file underlying the given channel . If the channel is still open this call may fail .