How do you delete a directory in Java? java.io.File defines a method delete() that deletes a file or directory:
public void delete(File dir) {
dir.delete();
}
If only it were that simple.
How do you delete a directory in Java? java.io.File defines a method delete() that deletes a file or directory:
public void delete(File dir) {
dir.delete();
}
If only it were that simple.