DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
delete contents of directory python
import os import glob files = glob.glob('/YOUR/PATH/*') for f in files: os.remove(f)
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#delete
#contents
#directory
#python
ADD COMMENT
Topic
COMMENT
Name
6+3 =
Submit