Java Delete Directory deleteDirectory(String directoryName)

Here you can find the source of deleteDirectory(String directoryName)

Description

delete Directory

License

Open Source License

Declaration

public static void deleteDirectory(String directoryName) 

Method Source Code

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

import java.io.File;

public class Main {
    public static void deleteDirectory(String directoryName) {
        File file = new File(directoryName);
        file.delete();//  w  ww .  j  ava  2 s .  c  o  m
    }
}

Related

  1. deleteDirectory(IProgressMonitor monitor, File directory)
  2. deleteDirectory(IProgressMonitor monitor, File directory, File base, int step)
  3. deleteDirectory(String dir)
  4. deleteDirectory(String directory)
  5. deleteDirectory(String directory)
  6. deleteDirectory(String directoryName)
  7. deleteDirectory(String dirName)
  8. deleteDirectory(String dirName)
  9. deleteDirectory(String dirname, boolean recursive)