Hi, I'm trying to delete a certain file within the directory that I'm running my python program in.
def erase_custom_file():
directory=os.listdir(os.getcwd())
for somefile in directory:
if somefile=="file.csv":
os.remove(???)
I'm not sure what my next step should be. I know that os.remove takes in a path for a parameter but I'm not sure how to direct it to the file I want.... Help me please? Thanks!