klyn.io.FolderPath.removeAll
method
public removeAll() as Void throws IOException:
Description

Recursively removes the folder content and the folder itself.

The parent folder is never removed, even when it becomes empty.

Throws
  • IOException if recursive deletion fails.
Example
parent = FolderPath(Path.tempDir, "klyn-example")
child = FolderPath(parent, "child")
child.mkdirs()
child.removeAll()
assert parent.exists
assert not child.exists