Copy to ClipboardRawPreviewimport os if os.path.exists(filename): # check the file exists os.remove(filename) Delete file08juli1Python public recipesShortcut: file.delete0 CommentsAdd CommentLog in to add a comment