public static Promise < Void > delete ( Executor executor , Path path ) { return ofBlockingRunnable ( executor , ( ) -> { try { Files . delete ( path ) ; } catch ( IOException e ) { throw new UncheckedException ( e ) ; } } ) ; }
Deletes the file concurrently .