Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

os.remove directory

os.rmdir("PATH")
Comment

Python Removing Directory or File

>>> os.listdir()
['new_one', 'old.txt']

>>> os.remove('old.txt')
>>> os.listdir()
['new_one']

>>> os.rmdir('new_one')
>>> os.listdir()
[]
Comment

PREVIOUS NEXT
Code Example
Python :: python sort list of lists by second element 
Python :: flask import jsonify 
Python :: how to write in google chrome console in python 
Python :: python show png 
Python :: merge multiple csv files into one dataframe python 
Python :: save ml model using joblib 
Python :: python import stringio 
Python :: time track python 
Python :: python print dictionary line by line 
Python :: python hex to bytes string 
Python :: how to cycle through panes in tmux 
Python :: subprocess the system cannot find the file specified 
Python :: scikit learn ridge regression 
Python :: print zip object python 
Python :: How to convert a string to a dataframe in Python 
Python :: df change column names 
Python :: how to end the python program 
Python :: perimeter of semicircle formula 
Python :: text to speech to specific language python 
Python :: get date and time python 
Python :: pandas normalize df 
Python :: python alphabet string 
Python :: Change the year in 2nd line to get the answer for the year you want. Ex: year=2010 
Python :: face detection 
Python :: python requests set header cookie 
Python :: convert list to array python 
Python :: remove warnings from jupter notebook 
Python :: python csv dictwriter 
Python :: python pause 
Python :: python pyautogui screenshot 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =