Hacker News new | past | comments | ask | show | jobs | submit login

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_...

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...




To be fair I have read the Python manual over and over again, I can usually find things by clicking on the appropriate section.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: