MCQs > IT & Programming > Python > Correct way to delete a directory that is not empty using Python?

Python MCQs

What is the correct way to delete a directory that is not empty using Python?

Answer

Correct Answer: import shutil shutil.rmtree('/directory')

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

More Python MCQ Questions

search

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it