Top 4 result is "Miscellaneous operating system interfaces", which does hold the answer, but it is not obvious, and browsing through that page is quite a chore before you finally get to `os.remove`, which says that it deletes "a path", which even I, a seasoned developer need to look twice to make sure that path removing a path and a file is the same thing.
https://docs.python.org/3/library/os.html?highlight=delete%2...
https://docs.python.org/3/search.html?q=delete+a+file&check_...
Top result: https://docs.python.org/3/library/configparser.html?highligh...
Top 4 result is "Miscellaneous operating system interfaces", which does hold the answer, but it is not obvious, and browsing through that page is quite a chore before you finally get to `os.remove`, which says that it deletes "a path", which even I, a seasoned developer need to look twice to make sure that path removing a path and a file is the same thing. https://docs.python.org/3/library/os.html?highlight=delete%2...