SyntaxFix
Write A Post
Hire A Developer
Questions
If you want a less verbose hack:
void deleteDirectory(String path) { Runtime.getRuntime().exec(String.format("rm -rf %s", path)); }