import shutil shutil.rmtree('/folder_name')
Here is what the above code is Doing:
1. Importing the shutil module.
2. Deleting the folder named ‘folder_name’ and everything inside it.
import shutil shutil.rmtree('/folder_name')
Here is what the above code is Doing:
1. Importing the shutil module.
2. Deleting the folder named ‘folder_name’ and everything inside it.