def c_destroy_model(name): """Destroys model with given name NAME: name of model """ if click.confirm( 'Warning! This will destroy both the Juju environment and the jFed experiment of the model "{}". Are you sure you want to continue?' .format(name)): jujuenv = JujuEnvironment(name) env_conf = init_environment_config(name) jujuenv.destroy(env_conf['locked']) provider_env = get_provider(env_conf).get(env_conf) provider_env.destroy()