
- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to remove a directory recursively using Python?
If you want to delete a folder containing all files and folders you want to remove, you can remove the folder(or tree) as follows:
>>> import shutil >>> shutil.rmtree('my_folder')
- Related Questions & Answers
- How to create a directory recursively using Python?
- How to create a Directory recursively using Java?
- How to remove a directory using Python?
- How to scan through a directory recursively in Python?
- How to zip a folder recursively using Python?
- How to create a directory using Python?
- Java program to List all files in a directory recursively
- How to rename multiple files recursively using Python?
- How to calculate a directory size using Python?
- How to rename directory using Python?
- How to touch all the files recursively using Python?
- How to Search and Remove Directories Recursively on Linux?
- How to create a unique directory name using Python?
- How to change current directory using Python?
- How to copy files to a new directory using Python?
Advertisements