Python os.rmdir() Method
Python provides the os module for different operating-related functions like removing directories. The os.rmdir() method is provided to remove directories in operating systems. The os.rmdir() can only remove an empty directory and raise OSError if the specified directory is not empty. os.rmdir() Syntax The os.rmdir() method has the following syntax. PATH is a directory path. The PATH can not … Read more