protected static void deleteFile ( @ Nonnull final File file ) { Check . notNull ( file , "file" ) ; Check . stateIsTrue ( ! file . exists ( ) || file . delete ( ) , "Cannot delete file '%s'." , file . getPath ( ) ) ; }
Removes the given file .