function
remove
remove(path: String)
Removes the specified file. If the path is a directory or it can not be deleted, an error is raised. Absolute and relative paths are allowed, relative paths are resolved from cwd.
Args:
- path (
String
): The path to the file.
remove[pathlike: PathLike](path: pathlike)
Removes the specified file. If the path is a directory or it can not be deleted, an error is raised. Absolute and relative paths are allowed, relative paths are resolved from cwd.
Parameters:
- pathlike (
PathLike
): The a type conforming to the os.PathLike trait.
Args:
- path (
pathlike
): The path to the file.