You want to delete a non-empty folder named old_data. What function should you use?
os.rmdir("old_data")
os.remove("old_data")
shutil.rmtree("old_data")
os.delete("old_data")
This question is part of this quiz :
Pathlib and Python Directory Management