python delete folder with os code example Example: python dlete folder import shutil shutil.rmtree('/folder_name')