Java File Path Delete deleteFolder(String path)

Here you can find the source of deleteFolder(String path)

Description

delete Folder

License

LGPL

Declaration

public static void deleteFolder(String path) throws IOException 

Method Source Code


//package com.java2s;
//License from project: LGPL 

import java.io.File;
import java.io.IOException;

public class Main {
    public static void deleteFolder(String path) throws IOException {
        final File delFolder = new File(path);

        if (!(delFolder.delete())) {
            throw new IOException("Could not delete temp folder: " + path);
        }//from  ww  w.j  a  v  a 2s  .co m
    }
}

Related

  1. deleteFolder(String folderPath)
  2. deleteFolder(String folderPath)
  3. deleteFolder(String path)
  4. deleteFolder(String path)
  5. deleteFolder(String path)
  6. deleteFolder(String path)
  7. deleteFolder(String path)
  8. deleteFolder(String path)
  9. deleteFolder(String path)