Java Path Delete nio deleteIfExists(Path value)

Here you can find the source of deleteIfExists(Path value)

Description

delete If Exists

License

Open Source License

Declaration

public static boolean deleteIfExists(Path value) throws IOException 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.io.IOException;

import java.nio.file.*;

public class Main {
    public static boolean deleteIfExists(Path value) throws IOException {
        return Files.deleteIfExists(value);
    }//from ww w  .j  a  va2 s . c om
}

Related

  1. deleteFile(String path)
  2. deleteFilesIfExist(Path... files)
  3. deleteFilesIgnoringExceptions(final Path... files)
  4. deleteFilesRecursively(Path path, final PathMatcher pathMatcher)
  5. deleteIfExists(Path thePath)
  6. deleteIndexBeforeStart(String basePath)
  7. deleteLockFile(Path logFile)
  8. deleteNotEmptyDirectory(Path path)
  9. deleteOnExit(Path path)