{
  "risk_level": "High",
  "why": "The combination of sudo and rm -rf permanently deletes files without confirmation or rollback. A typo, trailing space, or unexpected path expansion could wipe critical system directories. Additionally, the wildcard (*) skips hidden files, potentially leaving stale configurations or state that break the redeployment.",
  "safer_process": "1. Stop the running service (e.g., systemctl stop flight-recorder). 2. Verify the exact target path with ls -la. 3. Archive or backup the current state. 4. Use an atomic deployment strategy (e.g., rsync, git pull, versioned directories with a symlink swap, or containerization) instead of in-place deletion. 5. If deletion is strictly necessary, use find /models/flight-recorder/app/ -mindepth 1 -delete, then restart and verify service health."
}