fn deleteDir(self: Dir, sub_path: []const u8) DeleteDirError!void

Returns error.DirNotEmpty if the directory is not empty. To delete a directory recursively, see deleteTree. Asserts that the path parameter has no null bytes.

Parameters

self: Dir,
sub_path: []const u8,