Interviews - C# Corner

Dinesh Beniwal
How can files be deleted in Python?
By Dinesh Beniwal in Python onJul 09 2019
  • Rohit Gupta
    Jul, 2019 10

    To delete a file we do:

    os.remove([file_name])

    file_name is a string hence should come in inverted commas

    • 1

Most Popular Companies

Most Popular Job Functions

MOST LIKED QUESTIONS