Delete file in python Using the pathlib module

41

import pathlib
file=pathlib.path("test/new_file.txt")
file.unlink()

Comments

Submit
0 Comments