import os
      
      if os.path.exists(filename): #  check the file exists
        os.remove(filename)
      

      Python language logo
      Delete file

      Python public recipes

      Shortcut: file.delete

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.