How to delete a file or folder in Python?


Path objects from the Python 3.4+ pathlib module also expose these instance methods:

Leave a Comment