Delete file in python Using the pathlib module

32

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

Comments

Submit
0 Comments