2 ms·
Searching for "Delete a file" in the python manual, will take you to a page about the configuration parser. https://docs.python.org/3/search.html?q=delete+a+fi
by wodenokoto 5y ago
Searching for "Delete a file" in the python manual, will take you to a page about the configuration parser.
https://docs.python.org/3/search.html?q=delete+a+file&check_keywords=yes&area=default https://docs.python.org/3/search.html?q=delete+a+file&check_...
Top result: https://docs.python.org/3/library/configparser.html?highlight=delete%20file 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%20file https://docs.python.org/3/library/os.html?highlight=delete%2...
- PaulHoule 5y agoTo be fair I have read the Python manual over and over again, I can usually find things by clicking on the appropriate section.