Java File Path Delete delete(File path)

Here you can find the source of delete(File path)

Description

delete

License

Open Source License

Declaration

public static void delete(File path) 

Method Source Code


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

import java.io.File;

public class Main {
    public static void delete(File path) {
        if (!path.delete())
            throw new RuntimeException("Could not delete " + path.getAbsolutePath());
    }//w ww. j a  va 2  s .  c o m
}

Related

  1. delAllFiles(File dir, String suffix)
  2. delDir(String path)
  3. delDirAndFile(String tempath)
  4. deleleFiles(String regex, String path)
  5. delEmptyPath(String path)
  6. delete(File path)
  7. delete(File path)
  8. delete(File path)
  9. delete(File path)