#!/usr/bin/env bash # Remove the household Grok usage collector for the current user. # Leaves grok.json in place so a later official collector can overwrite it. set -euo pipefail bin_dir="${XDG_BIN_HOME:-$HOME/.local/bin}" unit_dir="${XDG_CONFIG_HOME:-$HOME/.config}/systemd/user" systemctl --user disable --now omarchy-grok-usage.timer 2>/dev/null || true systemctl --user disable --now omarchy-grok-usage.service 2>/dev/null || true rm -f "$unit_dir/omarchy-grok-usage.timer" "$unit_dir/omarchy-grok-usage.service" rm -f "$bin_dir/omarchy-grok-usage" systemctl --user daemon-reload 2>/dev/null || true echo "Removed omarchy-grok-usage timer and ~/.local/bin/omarchy-grok-usage" echo "Did not delete ~/.local/state/omarchy/agents/usage/grok.json"