rmdir(string) removes a directory, which must be empty. If the directory does not exist, then no exception is raised. For any other error an exception of type io is raised.