How will you delete a file in python module using python code?
AnswerBot
1y
To delete a file in Python module, use the os module's remove() method.
Import the os module
Use the remove() method to delete the file
Specify the file path in the remove() method
Help your peers!
Add answer anonymously...
Top Xoriant Associate Software Engineer interview questions & answers
Popular interview questions of Associate Software Engineer
Top HR questions asked in Xoriant Associate Software Engineer
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app