fn deleteTree(self: Dir, sub_path: []const u8) DeleteTreeError!void

Whether full_path describes a symlink, file, or directory, this function removes it. If it cannot be removed because it is a non-empty directory, this function recursively removes its entries and then tries again. This operation is not atomic on most file systems.

Parameters

self: Dir,
sub_path: []const u8,