std.fs.remove

std.fs

remove(path, recursive) -> ok, err

Remove a file or directory

Removes a file or directory. If recursive is true and the path is a directory, all contents are removed recursively. Returns nil and an error if the path doesn't exist or cannot be removed.