<jupyter_start><jupyter_text>Tear Down<jupyter_code>from dotenv import set_key, get_key, find_dotenv
env_path = find_dotenv(raise_error_if_not_found=True)
resource_group = get_key(env_path, "resource_group" )<jupyter_output><empty_output><jupyter_text>Remove Azure ML workspace and ACR.<jupyter_code>!az group delete --name {resource_group} -y<jupyter_output><empty_output><jupyter_text>Remove docker image from local docker environment.<jupyter_code>image_tag = get_key(env_path, "image_tag")
!docker rmi  {image_tag}<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.10036496350364964, 'fraction_numerical': 0.0, 'mean_word_length': 11.767441860465116, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '477943', 'license': 'MIT', 'n_tokens_mistral': 208, 'n_tokens_neox': 203, 'n_words': 34, 'path': '06_TearDown.ipynb', 'repo_name': 'dciborow/HyperdriveDeepLearning', 'size': '548'}