Category Archives: Python

Step to delete a File or Folder in Python

Sometime we have to delete a file or folder/directory in python. Either its empty or contain anything, please find the following steps, To remove a file: os.remove() To remove an empty directory/folder: os.rmdir() To remove a directory and all its … Continue reading

Posted in General, Python | Leave a comment