#!/usr/bin/env bash
# Stops the service and removes the cap-otel, cap-prom, and cap-graf containers and the work folder.
source "$(dirname "$0")/../lib.sh"
WORK="$HOME/labs/capstones/obs"
[ -f "$WORK/service.pid" ] && kill "$(cat "$WORK/service.pid")" 2>/dev/null || true
docker rm -f cap-otel cap-prom cap-graf > /dev/null 2>&1 || true
rm -rf "$WORK"
echo "capstone 4 reset: service stopped, containers cap-otel, cap-prom, cap-graf removed, $WORK removed"
