Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

Delete file in python Using the shutil module

import shutil
shutil.rmtree('/test/')
Comment

delete file shutil

os.remove()
Comment

PREVIOUS NEXT
Code Example
Python :: django redirect 
Python :: python towers of hanoi recursive 
Python :: how to remove an element from a list in python 
Python :: argparse print help if no arguments 
Python :: python change function of object 
Python :: convert python script to exe 
Python :: datetime.timedelta format to string python 
Python :: python sort an array 
Python :: xlsb file in pandas 
Python :: how to check if a variable holds a class reference in python 
Python :: repr() in python 
Python :: # enumerate 
Python :: pytube python 
Python :: slack bot error not_in_channel 
Python :: tensorflow.keras.utils.to_categorical 
Python :: django login url 
Python :: decision tree classifier example 
Python :: python captcha bypass 
Python :: has no attribute python 
Python :: string python 
Python :: python pickle module 
Python :: add timestamp csv python 
Python :: python divide array into n parts 
Python :: what is the difference between accuracy and loss 
Python :: producer and consumer problem in python 
Python :: rearrange columns pandas 
Python :: stacks in python 
Python :: print to file python 
Python :: python for data analysis 
Python :: python internship 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =