import os, shutil

#  this function helps to delete only file
#os.unlink("demo1/sample2.py")


#  this function helps to delete only and only empty directory
# os.rmdir("demo4")

# #  this function helps to delete only folder
shutil.rmtree("demo2")
