#!/bin/bash -e
# OpenStack Tenant User - Juju Controller and Example Model Destruction

if [ -z "${OS_PROJECT_NAME}" ]; then
  echo "ERROR: Have you sourced novarc?"
  exit 1
fi

set -ux

export CLOUD_NAME="$OS_REGION_NAME"
export CONTROLLER_NAME="${OS_PROJECT_NAME}-${CLOUD_NAME}"

juju destroy-controller --destroy-all-models $1 $CONTROLLER_NAME

Add juju controller destroy example
Add juju controller destroy example
