#!/usr/bin/env bash # Remove the launchd jobs and print how to clear the wake schedule. set -euo pipefail LA="$HOME/Library/LaunchAgents" for p in caffeinate nightly market_open; do launchctl unload "$LA/ai.tradingagent.$p.plist" 2>/dev/null || true rm -f "$LA/ai.tradingagent.$p.plist" echo "removed ai.tradingagent.$p" done echo echo "Also clear the nightly wake schedule (needs sudo):" echo " sudo pmset repeat cancel"