#!/bin/bash echo "Removing the application..." # Remove the containers forcefully. docker rm -f flask_app postgres_db # Remove the custom network and volume if they exist. docker network rm app_network 2>/dev/null || echo "Network app_network already removed." docker volume rm pgdata 2>/dev/null || echo "Volume pgdata already removed." echo "Application removed."