#!/bin/bash # Remove all Kubernetes objects for Vigimeteo set -e echo "╔══════════════════════════════════════════╗" echo "║ Vigimétéo – Stop App ║" echo "╚══════════════════════════════════════════╝" echo "Stopping app..." # 1- Deleting the namespace removes everything inside it automatically kubectl delete namespace vigimeteo --ignore-not-found # 2 - The PersistentVolume is cluster-scoped so it must be deleted separately kubectl delete pv vigimeteo-db-pv --ignore-not-found echo "" echo "════════════════════════════════════════════" echo " All Vigimeteo Kubernetes objects removed." echo " Note: ~/vigimeteo-db-data was NOT deleted." echo " Run: rm -rf ~/vigimeteo-db-data to clean up." echo "════════════════════════════════════════════" echo "App stopped."